From e797be6bd25b952cafde3c04034dba23e6dfaea3 Mon Sep 17 00:00:00 2001 From: Ronald van der Horst <79786016+RonaldvdH@users.noreply.github.com> Date: Wed, 17 Aug 2022 11:22:11 -0700 Subject: [PATCH] Update docs to use latest Flipper SDK (#3970) Summary: Since react-native 0.69 the use_flipper method has been refactored to a different way to enable flipper within a react-native project. After upgrading to react-native 0.69.0 my Flipper SDK version downgraded to version 0.125.0. I had to find a new way to be able to pass the version as parameter so i can use the latest flipper SDK. As i could not find any documentation about this, I read the source code and had to figure it out myself. Hope to save some time for some people in the future. ## Changelog Updated docs to use latest Flipper SDK Pull Request resolved: https://github.com/facebook/flipper/pull/3970 Test Plan: No tests as it is a documentation change. **Static Docs Preview: flipper** |[Full Site](https://our.intern.facebook.com/intern/staticdocs/eph/D38784983/V2/flipper/)| |**Modified Pages**| |[docs/getting-started/react-native](https://our.intern.facebook.com/intern/staticdocs/eph/D38784983/V2/flipper/docs/getting-started/react-native/)| Reviewed By: passy Differential Revision: D38784983 Pulled By: mweststrate fbshipit-source-id: 98ef423c6812f1fa009d79171fcbd8a9a779ef1c --- docs/getting-started/react-native.mdx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/getting-started/react-native.mdx b/docs/getting-started/react-native.mdx index be79ad09c..eb9f11753 100644 --- a/docs/getting-started/react-native.mdx +++ b/docs/getting-started/react-native.mdx @@ -37,6 +37,11 @@ Android: iOS: +react-native version => 0.69.0 +1. Call `FlipperConfiguration.enabled` with a specific version in `ios/Podfile`, for example: `:flipper_configuration => FlipperConfiguration.enabled(["Debug"], { 'Flipper' => '0.159.0' }),`. +2. Run `pod install --repo-update` in the `ios` directory. + +react-native version < 0.69.0 1. Call `use_flipper` with a specific version in `ios/Podfile`, for example: `use_flipper!({ 'Flipper' => '0.159.0' })`. 2. Run `pod install --repo-update` in the `ios` directory.