I'm new to react native, and I'm trying to install the react native Facebook SDK so that I can do Facebook login with my app.
I followed the steps listed here: https://tylermcginnis.com/installing-the-facebook-sdk-into-a-react-native-android-and-ios-app/
The problem is that when I run react-native run-android, the app crashes immediately. How do I debug this crash? I don't know where to look for crash logs. Running react-native log-android doesn't show me anything useful.
Edit:
I know that this a Java issue rather than a JS issue. How can I find Java crash logs?
Enable or disable App Center Crashes at runtime If you disable it, the SDK won't do any crash reporting for the app. await Crashes. setEnabled(false); To enable App Center Crashes again, use the same API but pass true as a parameter.
What is Flipper? Flipper is a highly extensible mobile app debugger used to debug iOS, Android and React Native applications. It lets you inspect, control, and visualize your application from its desktop application.
If you are using on MS : ctrl + m , MAC OS : cmd + m , iPhone/android: shake your device then look for the "disable Remote Debug JS" and click it. Show activity on this post. Go to your android settings and clear app data and cache and reload the app remote debugging will be turned off.
To see Java logs, open AndroidStudio, and click on AndroidMonitor at the bottom of the screen.
I was able to see the crash stack trace. My problem is that I need to set a valid facebook app id in AndroidManifest.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With