Skip to content

Instantly share code, notes, and snippets.

@tomoima525
Created December 4, 2019 01:08
Show Gist options
  • Save tomoima525/b5e9fdbe74de2910afacbfede473bbc3 to your computer and use it in GitHub Desktop.
Save tomoima525/b5e9fdbe74de2910afacbfede473bbc3 to your computer and use it in GitHub Desktop.
Bug investigation on RN
  1. Check the behavior and logs
  • Check any suspicious error is showing up on log
  1. Check the setting on Android
  • Check any settings are missing on the file below
    • settings.gradle, build.gradle, app/build.gradle, MainApplication.java, MainActivity.java
  1. Read documents
  • Create RN project from scratch and check the diff between our project
  • Check document of CodePush and React Native Navigation(which are the largest diff on the Native side)
  1. Simplify/breakdown codebase to triage the bug
  • Remove anything related to React Native Navigation
  • Add simple AppRegistry in index.android.js and remove any other code to see if the app runs correctly

At the point of #4, I found the app still keeps reloading even though everything is same with a newly created RN project on the Native side so I realized the issue is on the JS side. Removed all imports from index.android.js, add them back one by one and ran the app until I find yellowBoxWarning is causing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment