Giter Site home page Giter Site logo

exploring-react-native's Introduction

Exploring React Native - MobileSpace

This repo serves as an Introduction to React Native for MobileSpace Season 2.

In this repo we will explore the RN ecosystem by creating a React Native app using react-native-cli, crna and expo. We will also get started with RN styling and use basic RN components such as View, Text, StyleSheet, Image, Button, ScrollView, ListView & TextInput components.

Assignment #1

Objectives

  • Intro to React Native, Expo and CRNA
  • Intro to RN components & styling

TODO

Demo

Vanilla React Native

  • Most control & customization for a RN app - let's you write native code for iOS (Swift) & Android (Java/Kotlin)
  • Needs XCode & Android Studio to run the app on your computer on an iOS Simualor or Android Emulator
  • Least beginner friendly but most powerful way to get started with RN (with respect to setup)

Setup & Run

npm install -g react-native-cli

react-native init VanillaReactNative

cd VanillaReactNative

react-native run-ios
  or
react-native run-android

For more details or if you run into trouble, follow this guide.


CRNA

  • Most functional & flexible of all the options - gives you Expo tooling and also allows your to eject out of the Expo ecosystem and generates iOS & Android code for you
  • Doesn't need XCode & Android Studio - can scan the QR code on your expo app and run your RN app
  • Most flexible way to get started with RN

Setup & Run

npm install -g create-react-native-app

create-react-native-app CRNA

cd CRNA

npm start

scan the QR code on the Expo mobile app
  or
npm run ios (needs Xcode)
  or
npm run android (needs Android Studio)

For more details or if you run into trouble, follow this guide.


Expo

  • Most feature rich of all the options - gives you access to Expo tooling & SDK with some really useful feature that work with minimal config
  • Doesn't need XCode & Android Studio - can scan the QR code on your expo app and run your RN app
  • Easiest & most useful way to get started with RN

Setup & Run

open up Expo XDE & open your project folder
  or
npm install -g exp
exp start

click share on XDE (top right) & scan QR code on your phone
  or
exp ios (needs Xcode)
  or
exp android (needs Android Studio)

For more details or if you run into trouble, follow this guide.


Submission

Once you have completed this assignment, please create a new issue on this repo with the title as your name and add the link to your repo in the description. One of the TA's will review your code and add your name to the list of completed submissions below if all looks good.

Completed submissions

  • Ryan Liszewski
  • Thomas Zhu
  • Bhavesh Chowdhury
  • Sukhjit Singh
  • Prakash Gurung
  • Nicholas Szeto
  • Emanuel Saunders
  • William Hua
  • Mitul Savani
  • Jakhongir Khusanov
  • Teodora Caneva
  • Affaan Ghazzali
  • Girish Rawat
  • Karan Gupta

Problems?

In case you run into any problems or issues, please post it on #questions channel on the MobileSpace Slack.

Finally

For any other questions about this repo or MobileSpace in general please reach out to @monte9 on Github.

exploring-react-native's People

Contributors

sukhjitsingh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.