react-native-fbsdk-next from @segment/analytics-react-native-plugin-facebook-app-events is causing conflicts. In our app we have facebook login implemented using react-native-fbsdk-next after installing plugin @segment/analytics-react-native-plugin-facebook-app-events and calling new FacebookAppEventsPlugin() app will crash with error:
Tried to register two views with the same name RCTFBLoginButton, js engine: hermes
For workaround for now we just simply import react-native-fbsdk-next directly from @segment/analytics-react-native-plugin-facebook-app-events/node_modules/react-native-fbsdk-next
@schriker next release will change react-native-fbsdk-next to a peerDependency, I believe this should help in your scenario to have only 1 version of it in your app
react-native-fbsdk-next
from@segment/analytics-react-native-plugin-facebook-app-events
is causing conflicts. In our app we have facebook login implemented usingreact-native-fbsdk-next
after installing plugin@segment/analytics-react-native-plugin-facebook-app-events
and callingnew FacebookAppEventsPlugin()
app will crash with error:Tried to register two views with the same name RCTFBLoginButton, js engine: hermes
This is happening for both iOS and Android
analytics-react-native
version: 2.15.0@segment/analytics-react-native-plugin-facebook-app-events
: 0.5.2For workaround for now we just simply import
react-native-fbsdk-next
directly from@segment/analytics-react-native-plugin-facebook-app-events/node_modules/react-native-fbsdk-next