From 038629c62bf0d4665b52d9fade3fb88861ae1194 Mon Sep 17 00:00:00 2001 From: Alessia Bellisario Date: Wed, 24 Jan 2024 13:50:40 -0500 Subject: [PATCH] fix: flipper example code highlighting (#11517) --- docs/source/integrations/react-native.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/source/integrations/react-native.md b/docs/source/integrations/react-native.md index b98605641d9..3990bdffde4 100644 --- a/docs/source/integrations/react-native.md +++ b/docs/source/integrations/react-native.md @@ -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); } ```