Debugging app crashes in react native

Joseph Fakelastname picture Joseph Fakelastname · Mar 27, 2017 · Viewed 21.9k times · Source

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?

Answer

Joseph Fakelastname picture Joseph Fakelastname · Mar 27, 2017

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.