You will find your fresh apk in android/app/build/outputs/apk/app-debug.apk. Just remember that this apk is not ready to upload to the App Store or production. With the following commands you will have and unsigned apk so you can install and share with your colleagues for testing purposes. Npm install babel-plugin-transform-class-properties -save Export APK to run in device npm install babel-plugin-transform-decorators-legacy -save JSX doesn’t support decorators by default so you need to install the Babel plugin to make it work. watchman watch-del-all Support decorators If something don’t run as expected, maybe you need to clear and create a new bundle with this command. If something doesn’t work after you installed a new library, maybe is because you skip this step. Some libraries have dependencies that need to be linked in the native code generated for React Native. react-native run-ios Link dependencies to native projects This command do exactly the same as react-native run-android but instead of the Android emulator, it opens the iPhone simulator. react-native run-android Run app in iOS emulator You need to be in the root of the project to run this command. This command is self explanatory and as it says it will start the Android emulator and install the app you just created. react-native init Ĭd Run app in Android emulator ![]() You can use Expo or create-react-native-app(which in turns uses Expo-Cli) to start your new project, but with this method you are in more control of what happend in your projecto and can communicate, tweak and write your own modules with native libraries for iOS and Android mobile platform. ![]() There are different ways you can bootstrap a react native application. If you don’t have it installed yet, is highly recommended that you follow the official guide. ![]() Here you will find a list of basic commands to start developing iOS and Android apps using React Native.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |