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
This commit is contained in:
Alfonso Curbelo
2022-07-19 04:43:54 -07:00
committed by Facebook GitHub Bot
parent 04220b6c7e
commit bc74a58aab

View File

@@ -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 <React/RCTAppSetupUtils.h>
```
RCTAppSetupUtils takes care of initializing Flipper and the integrations mentioned above.
### React Native 0.67
<Tabs defaultValue="ios" values={[{ label: 'iOS', value: 'ios'}, { label: 'Swift', value: 'swift'}]}>
<TabItem value="ios">