diff --git a/versioned_docs/version-7.x/MST-integration.md b/versioned_docs/version-7.x/MST-integration.md index 421ba23c01f..644d600f13c 100755 --- a/versioned_docs/version-7.x/MST-integration.md +++ b/versioned_docs/version-7.x/MST-integration.md @@ -45,7 +45,7 @@ Use `Provider` to wrap what you return from your root component's render method: ``` - + ```js diff --git a/versioned_docs/version-7.x/auth-flow.md b/versioned_docs/version-7.x/auth-flow.md index dcd7b4918d1..9cc509c29da 100755 --- a/versioned_docs/version-7.x/auth-flow.md +++ b/versioned_docs/version-7.x/auth-flow.md @@ -492,7 +492,7 @@ export default function App() { ``` - + ```js state.userToken == null ? ( @@ -740,7 +740,7 @@ export default function App() { ``` - + ```js name="Signing in and signing out with AuthContext" snack version=7 import * as React from 'react'; @@ -982,7 +982,7 @@ const RootStack = createNativeStackNavigator({ ``` - + ```js isSignedIn ? ( @@ -1052,7 +1052,7 @@ const RootStack = createNativeStackNavigator({ ``` - + ```js <> @@ -1131,7 +1131,7 @@ const RootStack = createNativeStackNavigator({ ``` - + ```js <> diff --git a/versioned_docs/version-7.x/custom-android-back-button-handling.md b/versioned_docs/version-7.x/custom-android-back-button-handling.md index 10821034d44..8e7a96d75a0 100755 --- a/versioned_docs/version-7.x/custom-android-back-button-handling.md +++ b/versioned_docs/version-7.x/custom-android-back-button-handling.md @@ -134,7 +134,7 @@ const styles = StyleSheet.create({ ``` - + ```js name="Custom android back button" snack version=7 import * as React from 'react'; diff --git a/versioned_docs/version-7.x/deep-linking.md b/versioned_docs/version-7.x/deep-linking.md index 52b25a857a9..dace434080c 100755 --- a/versioned_docs/version-7.x/deep-linking.md +++ b/versioned_docs/version-7.x/deep-linking.md @@ -58,7 +58,7 @@ function App() { ``` - + ```js import * as Linking from 'expo-linking'; diff --git a/versioned_docs/version-7.x/devtools.md b/versioned_docs/version-7.x/devtools.md index 4bf0212860c..847a8bbbd4e 100644 --- a/versioned_docs/version-7.x/devtools.md +++ b/versioned_docs/version-7.x/devtools.md @@ -53,7 +53,7 @@ export default function App() { - + ```js import * as React from 'react'; diff --git a/versioned_docs/version-7.x/drawer-based-navigation.md b/versioned_docs/version-7.x/drawer-based-navigation.md index c62f4289293..ce92c66b188 100755 --- a/versioned_docs/version-7.x/drawer-based-navigation.md +++ b/versioned_docs/version-7.x/drawer-based-navigation.md @@ -72,7 +72,7 @@ export default function App() { ``` - + ```js name="Drawer navigation" snack version=7 import * as React from 'react'; @@ -517,7 +517,7 @@ export default function App() { ``` - + ```js name="Navigation dispatcher" snack version=7 import * as React from 'react'; diff --git a/versioned_docs/version-7.x/elements.md b/versioned_docs/version-7.x/elements.md index da197f402fc..12276cb51e6 100644 --- a/versioned_docs/version-7.x/elements.md +++ b/versioned_docs/version-7.x/elements.md @@ -65,7 +65,7 @@ const RootStack = createNativeStackNavigator({ ``` - + ```js - + ```js name="Header blur" snack version=7 dependencies=expo-blur@~12.9.1 import * as React from 'react'; diff --git a/versioned_docs/version-7.x/function-after-focusing-screen.md b/versioned_docs/version-7.x/function-after-focusing-screen.md index 788c7edc9e0..e7d5344f624 100755 --- a/versioned_docs/version-7.x/function-after-focusing-screen.md +++ b/versioned_docs/version-7.x/function-after-focusing-screen.md @@ -76,7 +76,7 @@ export default function App() { ``` - + ```js name="Focus event listener" snack version=7 // codeblock-focus-start @@ -183,7 +183,7 @@ export default function App() { ``` - + ```js name="useFocusEffect hook" snack version=7 import * as React from 'react'; diff --git a/versioned_docs/version-7.x/group.md b/versioned_docs/version-7.x/group.md index c5d2a43527a..8a70774b705 100644 --- a/versioned_docs/version-7.x/group.md +++ b/versioned_docs/version-7.x/group.md @@ -26,7 +26,7 @@ const Stack = createStackNavigator({ ``` - + ```js const Stack = createStackNavigator(); // Stack contains Screen & Navigator properties @@ -103,7 +103,7 @@ export default function App() { ``` - + ```js name="Stack groups" snack version=7 dependencies=@react-navigation/elements import * as React from 'react'; @@ -180,7 +180,7 @@ const Stack = createNativeStackNavigator({ ``` - + ```js - + ```js - + ```js diff --git a/versioned_docs/version-7.x/handling-safe-area.md b/versioned_docs/version-7.x/handling-safe-area.md index 0b70da40c37..848fabc84b2 100755 --- a/versioned_docs/version-7.x/handling-safe-area.md +++ b/versioned_docs/version-7.x/handling-safe-area.md @@ -101,7 +101,7 @@ export default function App() { ``` - + ```js name="Hidden components" snack version=7 import * as React from 'react'; @@ -232,7 +232,7 @@ export default function App() { ``` - + ```js name="Safe area example" snack version=7 import * as React from 'react'; @@ -400,7 +400,7 @@ export default function App() { ``` - + ```js name="useSafeAreaInsets hook" snack version=7 import * as React from 'react'; diff --git a/versioned_docs/version-7.x/hiding-tabbar-in-screens.md b/versioned_docs/version-7.x/hiding-tabbar-in-screens.md index 3cf2a11464c..73fa23e6851 100644 --- a/versioned_docs/version-7.x/hiding-tabbar-in-screens.md +++ b/versioned_docs/version-7.x/hiding-tabbar-in-screens.md @@ -132,7 +132,7 @@ export default function App() { ``` - + ```js name="Hiding tabbar" snack version=7 import * as React from 'react'; diff --git a/versioned_docs/version-7.x/modal.md b/versioned_docs/version-7.x/modal.md index c8e2c6f7cc3..eadd0405783 100755 --- a/versioned_docs/version-7.x/modal.md +++ b/versioned_docs/version-7.x/modal.md @@ -111,7 +111,7 @@ export default function App() { ``` - + ```js name="Modal" snack version=7 import * as React from 'react'; diff --git a/versioned_docs/version-7.x/multiple-drawers.md b/versioned_docs/version-7.x/multiple-drawers.md index 3f4ca273689..a5b1ca8cd13 100644 --- a/versioned_docs/version-7.x/multiple-drawers.md +++ b/versioned_docs/version-7.x/multiple-drawers.md @@ -74,7 +74,7 @@ export default function App() { ``` - + ```js import * as React from 'react'; @@ -205,7 +205,7 @@ export default function App() { ``` - + ```js import * as React from 'react'; @@ -334,7 +334,7 @@ export default function App() { ``` - + ```js name="Multiple drawers" snack version=7 import * as React from 'react'; @@ -466,7 +466,7 @@ export default function App() { ``` - + ```js name="Multiple drawers navigators" snack version=7 import * as React from 'react'; diff --git a/versioned_docs/version-7.x/navigating-without-navigation-prop.md b/versioned_docs/version-7.x/navigating-without-navigation-prop.md index a614b6f8afb..ae39321d01f 100755 --- a/versioned_docs/version-7.x/navigating-without-navigation-prop.md +++ b/versioned_docs/version-7.x/navigating-without-navigation-prop.md @@ -42,7 +42,7 @@ export default function App() { ``` - + ```js import { NavigationContainer } from '@react-navigation/native'; @@ -140,7 +140,7 @@ export default function App() { ``` - + ```js name="Using navigate in any js module" snack version=7 import * as React from 'react'; @@ -294,7 +294,7 @@ export default function App() { ``` - + ```js name="Handling navigation init" snack version=7 import * as React from 'react'; diff --git a/versioned_docs/version-7.x/navigation-container.md b/versioned_docs/version-7.x/navigation-container.md index e2d0e7fc48b..7b1e3a0c839 100644 --- a/versioned_docs/version-7.x/navigation-container.md +++ b/versioned_docs/version-7.x/navigation-container.md @@ -38,7 +38,7 @@ export default function App() { ``` - + ```js import { NavigationContainer } from '@react-navigation/native'; @@ -113,7 +113,7 @@ export default function App() { ``` - + ```js name="Using refs" snack version=7 dependencies=@react-navigation/elements import * as React from 'react'; @@ -307,7 +307,7 @@ Example: ``` - + ```js - + ```js - + ```js import { NavigationContainer } from '@react-navigation/native'; @@ -466,7 +466,7 @@ function App() { ``` - + ```js - + ```js { @@ -560,7 +560,7 @@ const RootStack = createNativeStackNavigator({ ``` - + ```js { @@ -605,7 +605,7 @@ const RootStack = createNativeStackNavigator({ ``` - + ```js { @@ -681,7 +681,7 @@ const RootStack = createNativeStackNavigator({ ``` - + ```js { @@ -757,7 +757,7 @@ export default function App() { ``` - + ```js import messaging from '@react-native-firebase/messaging'; @@ -858,7 +858,7 @@ export default function App() { ``` - + ```js import messaging from '@react-native-firebase/messaging'; @@ -948,7 +948,7 @@ export default function App() { ``` - + ```js - + ```js - + ```js import { NavigationContainer } from '@react-navigation/native'; @@ -1161,7 +1161,7 @@ function NestedApp() { ``` - + ```js import { diff --git a/versioned_docs/version-7.x/navigation-context.md b/versioned_docs/version-7.x/navigation-context.md index 928f2b8ba14..5dda95dc526 100755 --- a/versioned_docs/version-7.x/navigation-context.md +++ b/versioned_docs/version-7.x/navigation-context.md @@ -78,7 +78,7 @@ export default App; ``` - + ```js name="Navigation context" snack version=7 dependencies=@react-navigation/elements import * as React from 'react'; diff --git a/versioned_docs/version-7.x/navigation-object.md b/versioned_docs/version-7.x/navigation-object.md index 7cf17a4cc72..8ff84e5bc1c 100755 --- a/versioned_docs/version-7.x/navigation-object.md +++ b/versioned_docs/version-7.x/navigation-object.md @@ -141,7 +141,7 @@ export default App; ``` - + ```js name="Navigate method" snack version=7 dependencies=@react-navigation/elements import * as React from 'react'; @@ -226,7 +226,7 @@ const Tabs = createBottomTabNavigator({ ``` - + ```js - + ```js name="Navigate method" snack version=7 dependencies=@react-navigation/elements import * as React from 'react'; @@ -496,7 +496,7 @@ export default App; ``` - + ```js name="Navigate - replace and reset" snack version=7 dependencies=@react-navigation/elements import * as React from 'react'; @@ -706,7 +706,7 @@ export default App; ``` - + ```js name="Navigate - setParams" snack version=7 dependencies=@react-navigation/elements import * as React from 'react'; @@ -870,7 +870,7 @@ export default App; ``` - + ```js name="Navigate - setOptions" snack version=7 dependencies=@react-navigation/elements import * as React from 'react'; @@ -1020,7 +1020,7 @@ export default function App() { ``` - + ```js name="Navigation events" snack version=7 dependencies=@react-navigation/elements import * as React from 'react'; @@ -1210,7 +1210,7 @@ const Drawer = createDrawerNavigator({ ``` - + ```js {/* .. */} diff --git a/versioned_docs/version-7.x/preventing-going-back.md b/versioned_docs/version-7.x/preventing-going-back.md index e542ba4fe1c..847ee91abcf 100644 --- a/versioned_docs/version-7.x/preventing-going-back.md +++ b/versioned_docs/version-7.x/preventing-going-back.md @@ -124,7 +124,7 @@ const styles = StyleSheet.create({ ``` - + ```js name="Prevent going back" snack version=7 import * as React from 'react'; diff --git a/versioned_docs/version-7.x/route-object.md b/versioned_docs/version-7.x/route-object.md index 2b218bf1b3d..67a551d0e09 100755 --- a/versioned_docs/version-7.x/route-object.md +++ b/versioned_docs/version-7.x/route-object.md @@ -49,7 +49,7 @@ export default function App() { ``` - + ```js name="Route prop" snack version=7 import * as React from 'react'; diff --git a/versioned_docs/version-7.x/screen-options-resolution.md b/versioned_docs/version-7.x/screen-options-resolution.md index 513acc11af1..16055b9c0df 100755 --- a/versioned_docs/version-7.x/screen-options-resolution.md +++ b/versioned_docs/version-7.x/screen-options-resolution.md @@ -70,7 +70,7 @@ export default function App() { ``` - + ```js name="Tabs with native stack" snack version=7 import * as React from 'react'; @@ -190,7 +190,7 @@ export default function App() { ``` - + ```js name="Tabs with native stack" snack version=7 import * as React from 'react'; @@ -321,7 +321,7 @@ export default function App() { ``` - + ```js name="Parent options from a child" snack version=7 import * as React from 'react'; @@ -499,7 +499,7 @@ export default function App() { - + ```js name="Parent options from a child" snack version=7 import * as React from 'react'; @@ -671,7 +671,7 @@ export default function App() { ``` - + ```js name="Reorganized navigators" snack version=7 import * as React from 'react'; diff --git a/versioned_docs/version-7.x/screen-options.md b/versioned_docs/version-7.x/screen-options.md index 53b0f5fc19e..1b29277a09e 100644 --- a/versioned_docs/version-7.x/screen-options.md +++ b/versioned_docs/version-7.x/screen-options.md @@ -81,7 +81,7 @@ export default function App() { ``` - + ```js name="Screen title option" snack version=7 dependencies=@react-navigation/elements import * as React from 'react'; @@ -159,7 +159,7 @@ const Stack = createNativeStackNavigator({ ``` - + ```js - + ```js name="Screen options for group" snack version=7 dependencies=@react-navigation/elements import * as React from 'react'; @@ -333,7 +333,7 @@ const Stack = createNativeStackNavigator({ ``` - + ```js @@ -378,7 +378,7 @@ const Stack = createNativeStackNavigator({ ``` - + ```js - + ```js name="Screen options for tab navigator" snack version=7 dependencies=@expo/vector-icons import * as React from 'react'; diff --git a/versioned_docs/version-7.x/screen-tracking.md b/versioned_docs/version-7.x/screen-tracking.md index 86c9ebc4916..8f9cf17ee42 100644 --- a/versioned_docs/version-7.x/screen-tracking.md +++ b/versioned_docs/version-7.x/screen-tracking.md @@ -99,7 +99,7 @@ export default function App() { ``` - + ```js name="Screen tracking for anylytics" snack version=7 import * as React from 'react'; diff --git a/versioned_docs/version-7.x/screen.md b/versioned_docs/version-7.x/screen.md index 452f9a04ab2..3f6038b5e11 100644 --- a/versioned_docs/version-7.x/screen.md +++ b/versioned_docs/version-7.x/screen.md @@ -23,7 +23,7 @@ const Stack = createNativeStackNavigator({ ``` - + ```js const Stack = createNativeStackNavigator(); // Stack contains Screen & Navigator properties @@ -47,7 +47,7 @@ const Stack = createNativeStackNavigator({ ``` - + ```js @@ -79,7 +79,7 @@ const Stack = createNativeStackNavigator({ ``` - + ```js @@ -119,7 +119,7 @@ const Stack = createNativeStackNavigator({ ``` - + ```js - + ```js - + ```js - + ```js - + ```js @@ -319,7 +319,7 @@ const Stack = createNativeStackNavigator({ ``` - + ```js - + ```js - + ```js name="Shared transition" import * as React from 'react'; diff --git a/versioned_docs/version-7.x/state-persistence.md b/versioned_docs/version-7.x/state-persistence.md index b59644962c0..836a4fdb560 100755 --- a/versioned_docs/version-7.x/state-persistence.md +++ b/versioned_docs/version-7.x/state-persistence.md @@ -144,7 +144,7 @@ export default function App() { ``` - + ```js name="Persisting the navigation state" snack version=7 dependencies=@react-native-async-storage/async-storage import * as React from 'react'; diff --git a/versioned_docs/version-7.x/status-bar.md b/versioned_docs/version-7.x/status-bar.md index 78070098b80..c005f06aa32 100755 --- a/versioned_docs/version-7.x/status-bar.md +++ b/versioned_docs/version-7.x/status-bar.md @@ -107,7 +107,7 @@ const styles = StyleSheet.create({ - + ```js name="Different status bar" snack version=7 import * as React from 'react'; @@ -328,7 +328,7 @@ const styles = StyleSheet.create({ ``` - + ```js name="Different status bar based on tabs" snack version=7 import * as React from 'react'; diff --git a/versioned_docs/version-7.x/testing.md b/versioned_docs/version-7.x/testing.md index d632463f7aa..60f92bafd90 100644 --- a/versioned_docs/version-7.x/testing.md +++ b/versioned_docs/version-7.x/testing.md @@ -83,7 +83,7 @@ test('shows profile screen when View Profile is pressed', () => { ``` - + ```js name='Testing with jest' import * as React from 'react'; diff --git a/versioned_docs/version-7.x/themes.md b/versioned_docs/version-7.x/themes.md index ef4061906bb..6b4598a90b1 100755 --- a/versioned_docs/version-7.x/themes.md +++ b/versioned_docs/version-7.x/themes.md @@ -113,7 +113,7 @@ export default function App() { ``` - + ```js name="Simple theme" snack version=7 // codeblock-focus-start @@ -437,7 +437,7 @@ export default function App() { ``` - + ```js name="Operating system color theme" snack version=7 import * as React from 'react'; @@ -660,7 +660,7 @@ export default function App() { ``` - + ```js name="System themes" snack version=7 import * as React from 'react'; diff --git a/versioned_docs/version-7.x/troubleshooting.md b/versioned_docs/version-7.x/troubleshooting.md index 67e6ebe60b5..ec1588aac01 100755 --- a/versioned_docs/version-7.x/troubleshooting.md +++ b/versioned_docs/version-7.x/troubleshooting.md @@ -223,7 +223,7 @@ export default function App() { ``` - + ```js import * as React from 'react'; @@ -286,7 +286,7 @@ const Stack = createNativeStackNavigator({ ``` - + ```js - + ```js - + ```js function App() { @@ -411,7 +411,7 @@ function App() { ``` - + ```js function App() { @@ -454,7 +454,7 @@ function App() { ``` - + ```js function App() { @@ -492,7 +492,7 @@ function App() { ``` - + ```js const Home = () => {