Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: flipper example code highlighting #11517

Merged
merged 2 commits into from
Jan 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading