Skip to content

Instantly share code, notes, and snippets.

@mrcodedev
Last active August 24, 2018 17:34
Show Gist options
  • Save mrcodedev/9cf80e6472962e62666ec969b7efa22e to your computer and use it in GitHub Desktop.
Save mrcodedev/9cf80e6472962e62666ec969b7efa22e to your computer and use it in GitHub Desktop.
Como instalar React Native y arrancarlo junto Genymotion

Instalacion React Native (junto emulador Genymotion)

Documentación Instalación Oficial

Documentación oficial React Native Instalación

Instalar React Native (en npm)

Debemos de tener instalados Node.js y npm. Ponemos esto en consola:

npm install -g react-native-cli

Instalar React Native App Folder

Nos vamos a la carpeta que nos interesa (nos va a crear otra el propio React Native) y ponemos esto:

react-native init nombreApp

Instalar Genymotion (Emulador Android: Ubuntu)

Como instalar Genymotion en Ubuntu

Comando Genymotion Unknown

Comando que no sé que hace, no sé si pone en tareas Genymotion (estoy usando Ubuntu)

touch ~/.gradle/gradle.properties && echo "org.gradle.daemon=true" >> ~/.gradle/gradle.properties

Lanzar Genymotion

Para lanzar Genymotion. Después sólo tenemos que ir donde lo instalamos:

/home/superbeast/Descargas/genymotion/genymotion

Lanzar React Native

Para lanzar el server de React Native:

react-native start

Lanzar Android Emulator

En mi caso estoy usando Genymotion y lo lanzo igualmente así (también vale con el emulador virtual de Android Studio pero hay que configurarlo antes desde el propio Android Studio):

react-native run-android
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment