Skip to content

Commit 20dd21e

Browse files
committed
chore(docs): Added code example for headerBackTitleStyle
1 parent 19163d8 commit 20dd21e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,31 @@ Only supported on iOS.
199199

200200
<img src="/assets/7.x/native-stack/headerBackTitleStyle.png" width="500" alt="Header back title style" />
201201

202+
Example:
203+
204+
```js
205+
export function NativeStack() {
206+
207+
return (
208+
<Stack.Navigator>
209+
<Stack.Screen
210+
name="NewsFeed"
211+
component={NewsFeedScreen}
212+
options={{
213+
title: 'Feed',
214+
animationTypeForReplace: 'pop',
215+
headerBackTitle: 'Back title example',
216+
headerBackTitleStyle: {
217+
fontSize: 14,
218+
fontFamily: 'Georgia',
219+
},
220+
}}
221+
/>
222+
</Stack.Navigator>
223+
);
224+
}
225+
```
226+
202227
#### `headerBackImageSource`
203228

204229
Image to display in the header as the icon in the back button. Defaults to back icon image for the platform

0 commit comments

Comments
 (0)