Legacy Installation Steps
July 7, 2019 ยท View on GitHub
The following document describes the installation steps for React Native versions prior to 0.60.x
Installation
yarn add react-native-facebook-account-kit
Linking
react-native link react-native-facebook-account-kit
Android manual steps
Check the RNAccountKitPackage is registered in your MainApplication.java file. This should be done by react-native link but sometimes it doesn't. You should see something like the following
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new RNAccountKitPackage() // <-- the package is registered
);
}
IOS manual steps using Cocoapods (Recomended)
-
Undo changes in
iosfolder (which were made byreact-native-link) in order to avoid duplicate compilationsgit checkout -- ios -
Add
RNAccountKitPod to your Podfile (if you don't have a podfile follow these instructions)target 'MyApp' do ... + pod 'RNAccountKit', :path => '../node_modules/react-native-facebook-account-kit/ios' ... end -
Run
pod installin youriosfolder
IOS manual steps without Cocoapods (Not recomended)
-
Open your project with XCode
-
Open with Finder the
node_modules/react-native-facebook-account-kit/iosfolder -
Drag and drop
AccountKit.frameworkandAccountKitStrings.bundlefrom Finder to your project in XCode (IMPORTANT: unselect the "Copy items if needed" option) -
Select you app target on XCode and click the
Build Settingstab. Go to theFramework Search Pathssection and add this new entry$(SRCROOT)/../node_modules/react-native-facebook-account-kit/ios
NOTE: We strongly recomend using cocoapods that's why on version 1.2.0 we removed the
AccountKit.framework/AccountKitStrings.bundlefiles from the project. If you don't want to use cocoapods you can still download the framework and the bundle from here and add it to your project by yourself.