Skip to content

v3.0.1

Latest
Compare
Choose a tag to compare
@rnike rnike released this 07 Mar 14:08

To install

yarn add VeryBuy/react-native-fbsdk#v3.0.1

Changes

  1. 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
  1. 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