From bc74a58aabfd27a06f10d9564bd8befa360deb7a Mon Sep 17 00:00:00 2001 From: Alfonso Curbelo Date: Tue, 19 Jul 2022 04:43:54 -0700 Subject: [PATCH] Update RN iOS setup to include RN 0.68 new Flipper initialization (#3905) Summary: When upgrading to RN 0.68, the upgrade helper removes the old Flipper initialization in favor of importing `RCTAppSetupUtils` which abstracts the Flipper initialization. To be consistent, we should show in the docs that for 0.68 the preferred way is to import `RCTAppSetupUtils` in the AppDelegate. ## Changelog - RN iOS setup docs has been updated to include the new way to initialize Flipper on React Native 0.68. Pull Request resolved: https://github.com/facebook/flipper/pull/3905 Test Plan: Imported from GitHub, without a `Test Plan:` line. **Static Docs Preview: flipper** |[Full Site](https://our.intern.facebook.com/intern/staticdocs/eph/D37927365/V2/flipper/)| |**Modified Pages**| |[docs/getting-started/react-native-ios](https://our.intern.facebook.com/intern/staticdocs/eph/D37927365/V2/flipper/docs/getting-started/react-native-ios/)| Reviewed By: lblasa, cortinico Differential Revision: D37927365 Pulled By: passy fbshipit-source-id: c6799e91a217d341eb817abb175ce63ea70c9597 --- docs/getting-started/react-native-ios.mdx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/getting-started/react-native-ios.mdx b/docs/getting-started/react-native-ios.mdx index 1f722ec1c..402c7f14e 100644 --- a/docs/getting-started/react-native-ios.mdx +++ b/docs/getting-started/react-native-ios.mdx @@ -105,6 +105,19 @@ The code below enables the following integrations: * Shared Preferences * Crash Reporter +### React Native 0.68+ + +If using React Native 0.68 or later, your AppDelegate should include + +```objc +... +#import +``` + +RCTAppSetupUtils takes care of initializing Flipper and the integrations mentioned above. + +### React Native 0.67 +