-
Book Overview & Buying
-
Table Of Contents
React Native By Example
By :
Initialize a new React Native project using the following command line:
react-native init FriendsAfterwards, navigate to the new project you just created using a command line.
The Facebook SDK for React Native is available through npm in a package called react-native-fbsdk. We'll install it as such:
npm install --save react-native-fbsdkNow link the SDK, as follows:
react-native link react-native-fbsdkNow, follow the detailed instructions on the react-native-fbsdk repo on GitHub found at https://github.com/facebook/react-native-fbsdk. Since the installation instructions are prone to being changed at any given time, I highly recommend that you use the instructions found in that repo.
Afterward, install the react-native-vector-icons library that we used in Expenses using the process we saw earlier (refer to Chapter 4, Advanced Functionality with the Expenses App, if you need a refresher).
Once you have initialized the app for this project and installed...