Skip to content

Commit

Permalink
fix: flipper example code highlighting (#11517)
Browse files Browse the repository at this point in the history
  • Loading branch information
alessbell authored Jan 24, 2024
1 parent cd36fde commit 038629c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions docs/source/integrations/react-native.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,16 @@ A community plugin called [React Native Apollo devtools](https://github.com/razo
2. Go to add plugin and search for `react-native-apollo-devtools` and install it
3. Add `react-native-flipper` and `react-native-apollo-devtools-client` as dev dependecy to react native app.
4. Initialize the plugin with flipper on client side
```

```ts
import { apolloDevToolsInit } from 'react-native-apollo-devtools-client';

const client = new ApolloClient({
// ...
})
if(__DEV__){
apolloDevToolsInit(client);
// ...
});

if (__DEV__) {
apolloDevToolsInit(client);
}
```

Expand Down

0 comments on commit 038629c

Please sign in to comment.