To install
yarn add VeryBuy/react-native-fbsdk#v3.0.1
Changes
- Warp the initialize function for react-native facebookarchive#841: We need it to initialize the sdk, because iOS sdk auto initialize has been removed (see v9.0.0 Changelog)
import { Platform } from 'react-native';
import { Settings } from 'react-native-fbsdk';
/**
* The `autoInitEnabled` option is removed from facebook-ios-sdk, should initialize manually
* See https://github.com/facebook/facebook-ios-sdk/blob/master/CHANGELOG.md#removed
*/
if(Platform.OS === 'ios'){
Settings.initializeSDK();
}
// NOTE: initializeSDK is also warped for Android
- Upgrade facebook-ios-sdk to v9.0.1 (commit): For fixing the deadlock issue because of ios auto initialize has been removed , see v9.0.1 Changelog