Skip to content

Commit fe43ed7

Browse files
committed
Show only relevant lines for link & button
1 parent ef80092 commit fe43ed7

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

versioned_docs/version-7.x/navigating.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ So how do we do this in React Navigation? There are two main ways to navigate be
2828
The simplest way to navigate is using the [`Link`](link.md) component from `@react-navigation/native` or the [`Button`](elements.md#button) component from `@react-navigation/elements`:
2929

3030
```js name="Navigation with Link and Button" snack static2dynamic
31+
// codeblock-focus-start
3132
import * as React from 'react';
3233
import { View, Text } from 'react-native';
3334
import { createStaticNavigation } from '@react-navigation/native';
@@ -49,6 +50,9 @@ function HomeScreen() {
4950
);
5051
}
5152

53+
// ... other code from the previous section
54+
// codeblock-focus-end
55+
5256
function DetailsScreen() {
5357
return (
5458
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>

versioned_docs/version-8.x/navigating.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ So how do we do this in React Navigation? There are two main ways to navigate be
2828
The simplest way to navigate is using the [`Link`](link.md) component from `@react-navigation/native` or the [`Button`](elements.md#button) component from `@react-navigation/elements`:
2929

3030
```js name="Navigation with Link and Button" snack static2dynamic
31+
// codeblock-focus-start
3132
import * as React from 'react';
3233
import { View, Text } from 'react-native';
3334
import { createStaticNavigation } from '@react-navigation/native';
@@ -52,6 +53,9 @@ function HomeScreen() {
5253
);
5354
}
5455

56+
// ... other code from the previous section
57+
// codeblock-focus-end
58+
5559
function DetailsScreen() {
5660
return (
5761
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>

0 commit comments

Comments
 (0)