Closed GreenFella closed 5 months ago
com.facebook.reactnative.androidsdk.FBAccessTokenModule.onCatalystInstanceDestroy(FBAccessTokenModule.java:81)
Looks like it's missing a simple null check, but I don't reproduce this so I can produce a patch and new version but you'll need to report back if it worked or not.
I've posted PR #474 which I will merge and release assuming it builds successfully, if you could report success/fail there I would appreciate it
I think you may be failing to properly initialize the Facebook SDK and simply doing that correctly would also avoid the problem. Specifically I see your app.json chunk but I'm not sure you have added the expo plugin into the plugin list? Because if you did I believe that would initialize things, then the object that is null and causing the crash would not be null
:tada: This issue has been resolved in version 12.1.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
I've posted PR #474 which I will merge and release assuming it builds successfully, if you could report success/fail there I would appreciate it
I think you may be failing to properly initialize the Facebook SDK and simply doing that correctly would also avoid the problem. Specifically I see your app.json chunk but I'm not sure you have added the expo plugin into the plugin list? Because if you did I believe that would initialize things, then the object that is null and causing the crash would not be null
@mikehardy The new release fixed this issue but just adding my app.json file in here in response to your notes:
{
"expo": {
"name": "......",
"slug": "......",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "automatic",
"scheme": "......",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true,
"googleServicesFile": "./GoogleService-Info.plist"
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
},
"googleServicesFile": "./google-services.json",
"package": "......"
},
"web": {
"favicon": "./assets/favicon.png"
},
"plugins": [
"@react-native-firebase/app",
"@react-native-firebase/auth",
"expo-build-properties",
[
"expo-location",
{
"locationAlwaysAndWhenInUsePermission": "Allow $(PRODUCT_NAME) to use your location."
}
],
[
"expo-build-properties",
{
"ios": {
"useFrameworks": "static"
}
}
],
[
"expo-image-picker",
{
"photosPermission": "The app accesses your photos to let you share them with your friends."
}
],
[
"react-native-fbsdk-next",
{
"appID": "myappid",
"clientToken": "myclienttoken",
"displayName": "myappdisplayname",
"scheme": "myappscheme"
}
]
],
"extra": {
"eas": {
"projectId": "......"
}
}
}
}
Fascinating. The plugin is in there! I dunno. Well, at least it can't crash now, thanks for testing and reporting back (I saw the comment on the PR, much appreciated)
Error:
🐛 Bug Report
The app crashes as soon as it is opened with the above error message. Two people have reported this issue within the last 5 days I found in this thread: https://github.com/expo/expo/issues/18497
Code Example
Installed via the expo install guide
npx expo install react-native-fbsdk-next
and then rebuilt my app usingnpx eas build --profile development --platform android
This is all I have added to my app related to react-native-fbsdk-next and it is in app.jsonEnvironment