Skip to content

Commit

Permalink
docs(native): add ios install
Browse files Browse the repository at this point in the history
  • Loading branch information
Almouro committed Mar 9, 2022
1 parent 82a0fea commit 8c5c686
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

[![Build Status](https://app.travis-ci.com/bamlab/react-native-performance.svg?branch=master)](https://app.travis-ci.com/bamlab/react-native-performance)

Only Android is supported for now. Add a 👍 on [this issue](https://github.com/bamlab/react-native-performance/issues/18) if you want to see iOS support.

![rn-perf-monitor](https://user-images.githubusercontent.com/4534323/151138734-dc9af3b1-1e96-4416-8abd-346597a4dbe8.gif)

## Usage
Expand Down Expand Up @@ -41,6 +39,27 @@ Then go to iOS/Android section below to continue the install

#### iOS

- Run `cd ios && pod install`

- In `./ios/yourapp/AppDelegate.m` (where `yourapp` depends on your app), add 2 lines:

```objc
#ifdef FB_SONARKIT_ENABLED
...
// Add this line
#import <FlipperPerformancePlugin.h>

static void InitializeFlipper(UIApplication *application) {
...

// Add this line
[client addPlugin:[FlipperPerformancePlugin new]];

[client start];
}
#endif
```

#### Android

In `./android/app/src/debug/java/com/yourapp/ReactNativeFlipper.java` (where `com/yourapp` depends on your app), add:
Expand Down

0 comments on commit 8c5c686

Please sign in to comment.