facebookarchive / react-native-fbsdk

A React Native wrapper around the Facebook SDKs for Android and iOS. Provides access to Facebook login, sharing, graph requests, app events etc.
https://developers.facebook.com/docs/react-native
Other
2.99k stars 909 forks source link

After using GoogleSignin the onLoginFinished is method not called. #764

Open AligDanish opened 4 years ago

AligDanish commented 4 years ago

🐛 Bug Report

When i first used GoogleSignin after logging it out and when i try to login again through Facebook fsdk , the onLoginFinished method not called.

Expected Behavior

The onLoginFinished method supposed to be called after using GoogleSignin.

Code Example

<GoogleSigninButton style={{width: 192, height: 48}} size={GoogleSigninButton.Size.Wide} color={GoogleSigninButton.Color.Dark} onPress={this.signin} disabled={this.state.isSigninInProgress} /> <LoginButton readPermissions={['public_profile']} onLoginFinished={(error, result) => { rest of the code... }} />

Environment

OS: Mint Node : v13.8.0 React-native :"0.62.2" react-redux: "7.2.0" redux: "^4.0.5", redux-persist: "6.0.0" react-native-google-signin: "2.1.1" react-native-fbsdk: "2.0.0"