These instructions are aimed at people manually adding Flipper to a React Native 0.62+ app. This should only be necessary if you have an existing app that cannot be upgraded with the React Native Upgrade tool.
Flipper is distributed via Maven Central. Add the dependencies to your
You should also explicitly depend on
instead of relying on transitive dependency resolution which is getting deprecated
with Gradle 5.
These exclusions are currently necessary to avoid some clashes with FBJNI shared libraries.
For maximum flexibility, we recommend you move the Flipper initialization to a separate
class that lives in a
debug/ folder, so that Flipper code never gets referenced in a
Note that this only enables the Layout Inspector plugin. Check out the React Native template for more plugins.
Application implementation, we then call the static method using
reflection. This gives us a lot of flexibility, but can be quite noisy.
Alternatively, recreate an empty
ReactNativeFlipper class in a
so you can call into the method directly.