Skip to content

Commit 1398417

Browse files
committed
chore(docs): Updated code example
1 parent 5f055d3 commit 1398417

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

versioned_docs/version-7.x/native-stack-navigator.md

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -202,24 +202,10 @@ Only supported on iOS.
202202
Example:
203203

204204
```js
205-
export function NativeStack() {
206-
return (
207-
<Stack.Navigator>
208-
<Stack.Screen
209-
name="NewsFeed"
210-
component={NewsFeedScreen}
211-
options={{
212-
title: 'Feed',
213-
headerBackTitle: 'Back title example',
214-
headerBackTitleStyle: {
215-
fontSize: 14,
216-
fontFamily: 'Georgia',
217-
},
218-
}}
219-
/>
220-
</Stack.Navigator>
221-
);
222-
}
205+
headerBackTitleStyle: {
206+
fontSize: 14,
207+
fontFamily: 'Georgia',
208+
},
223209
```
224210

225211
#### `headerBackImageSource`

0 commit comments

Comments
 (0)