Recommended: Version >= 6
npm install -g react-native-cli
git clone [git-url]
npm i
npm run link
cd ios && pod install && cd ..
- Open main project in xcode and Select your main project in the navigator to bring up settings
- Under
Build Settings
scroll down toSearch Paths
- Add new path for OneSignal to your
Header Search Paths
or make sure it's the same with below path if it already exists:
$(SRCROOT)/../node_modules/react-native-onesignal/ios
and choose Recursive
- Open xcode project:
open ios/espmWhip.xcworkspace/
- Run
open node_modules/react-native-facebook-login
- Have your react native xcode project open and drag
RCTFBLogin.xcodeproj
into yourLibraries
group. - Select your main project in the navigator to bring up settings
- Under
Build Phases
expand theLink Binary With Libraries
header. Do these steps if you don't see libRCTFBLogin.a on the list
- Scroll down and click the
+
to add a library - Find and add
libRCTFBLogin.a
under theWorkspace
group
- Run
open node_modules/react-native-facebook-login/FacebookSDK
- Open your main project in xcode and right click on your project’s name in the left sidebar and select “New Group” and type in “Frameworks”. Do not do this if you already install pod
- Select all the
.framework
files in the FacebookSDK folder in react-native-facebook-login node module and click drag them into the Frameworks folder/group you just created in xcode or highlight the Frameworks group in left sidebar and go to File > Add files to "yourProjectName" and select the.framework
files. - Select your main project in the navigator to bring up settings
- Under
Build Settings
scroll down toSearch Paths
- Add the following path to your
Framework Search Paths
$(SRCROOT)/../node_modules/react-native-facebook-login/FacebookSDK
then choose Recursive
- ⌘ + B to build
- Run
npm run android
- If you have problem during building, run this:
cd android && ./gradlew clean && cd ..
then Rebuild it
- Run:
react-native run-ios