Ashish | Blog

Better debugging react native apps with Flipper

What is Flipper? #

Flipper is a great platform to inspect and debug mobile applications written in ios and android. This developer tool is written in electron. It is useful in inspecting layout, comes with a network inspector and device log viewer. It has also a plugin API which means you can extend the functionalities by creating your own plugins or using existing ones from the internet.
For example, if you use redux in your application, you can install Redux Flipper plugin.

By default, Flipper provides these plugins:

Set up #

If you are starting a new app using react native v0.62 and above, Flipper is available out of the box.
If you want to integrate with an existing project (>= v0.62), follow the steps:
Android:
https://fbflipper.com/docs/getting-started/react-native-android/

iOS:
https://fbflipper.com/docs/getting-started/react-native-ios

Updating to latest SDK version #

By default, the version of Flipper shipped with react native maybe outdated. To verify you are on the latest version, run npm info flipper to determine the latest stable version.

To update to the latest SDK, follow the steps:

Android:

iOS:

Flipper will make your life easier as a react native developer. Do try it.