Skip to content

Instantly share code, notes, and snippets.

@sebackend
Last active February 7, 2019 18:12
Show Gist options
  • Save sebackend/ab584647c80bf1e9bad2506f87ce8140 to your computer and use it in GitHub Desktop.
Save sebackend/ab584647c80bf1e9bad2506f87ce8140 to your computer and use it in GitHub Desktop.
React Native setup - with expo

1.- Instalación

- Con Expo

$ sudo npm install -g create-react-native-app
$ sudo npm install --global expo-cli
- Usando el cli
$ npm install -g react-native-cli

2.- Crear aplicación básica

- Con Expo
$ create-react-native-app appName
$ cd appName
$ expo start

- Usando el CLI

$ react-native init appName --version 0.55.4
$ cd appName
$ react-native start --reset-cache
$ react-native run-android
Comandos adb para android
$ adb -s DEVICE_NAME reverse tcp:8081 tcp:8081
$ adb shell input keyevent 82

Build iOS

Antes de hacer build en XCode

$ rm -rf node_modules/ && yarn cache clean && yarn install
$ rm -rf ~/.rncache
$ cd node_modules/react-native/scripts
$ ./ios-install-third-party.sh
$ cd third-party/glog-0.3.4
$ ./configure
$ make
$ make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment