

To run Android app, you should start emulator first, either via Android Studio or adb, then react-native run-android. React-native run-ios - simulator=”iPhone X” To run iOS app, you should specify simulator The official react-native init works so well, for how to install this tool, visit Building Project with Native Code. There are many cases those stuff are unnecessary and you avoid having extra unneeded dependencies. My little piece of advice when working with React Native, is because of its heavy dependencies, you should do a bit of research for every tools or frameworks that you like to add. I think they should rename the repo to create-react-native-expo-app to avoid confusion. I use Visual Studio Code as the editor, and the hot key that you need to remember the most is Shift + Option + F, which is used to format code. I used to use yarn but now I find npm works well so let’s stick with npm. It shows how to implement Facebook SDK for a React Native apps that uses React Navigation and react-native-elements, together with my experiences about React Native.Īs the time of this post, I use macOS 10.13.3, Xcode 9.3, Android Studio 3.1.4, react-native-cli 2.0.1, npm 6.3.0, node 8.9.4, nodenv 1.1.2. In cases you need to build React Native apps with Facebook SDK, this post is for you. For me, React Native saves some time (at first) developing for both iOS and Android while taking me more time digging into issues and questions.ĭepending on team preference and projects, React Native may be a consideration. Although most of them are well known issues and can be solved with a couples of searches on Google. Sometimes 2 frameworks get merged together, sometimes a framework get split into 2, which may cause breaking changes in your app. React Native has lot of dependencies, each depends on a tons of other dependencies, and they move pretty fast (and break things).
