First, make sure you have the following running:
yarn watch
- Your Android emulator or iOS simulator
yarn start:android
oryarn start:ios
Next, install the Flipper desktop app (verified working with v0.127.0)
- Once Flipper is installed, configure your system as follows:
- Install react-devtools:
npm i -g react-devtools@4.22.1
- Update Android SDK location settings by accessing Flipper's settings via the
Gear Icon
->Settings
- Example SDK path:
/Users/<USER_NAME>/Library/Android/sdk
- Example SDK path:
- Install react-devtools:
Finally, check that the debugger is working:
- Open your emulator or simulator alongside the Flipper app
- Flipper should auto-detect the device and the application to debug
- You should now be able to access features such as
Logs
- Debugging physical iOS devices requires
idb
to be installed, which consists of 2 parts - Install the two idb parts:
brew tap facebook/fb
&brew install idb-companion
pip3.9 install fb-idb
(This step may require that you install python3 viapython -m pip3 install --upgrade pip
)
Android
- Run the app in debug mode (for example, in a simulator)
- Open Chrome on your desktop
- Go to
chrome://inspect/#devices
- Look for the device and click inspect
iOS
- Run the app in debug mode (for example, in a simulator)
- Open Safari on your desktop
- Go to the menu Develop -> [Your device] -> [Website]
You should see the console for the website that is running inside the WebView