Skip to content

Commit 8d20f3a

Browse files
Update elements.md
use headerRight in code snippets
1 parent db23292 commit 8d20f3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: versioned_docs/version-7.x/elements.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ const RootStack = createNativeStackNavigator({
303303
Home: {
304304
screen: HomeScreen,
305305
options: {
306-
headerLeft: (props) => (
306+
headerRight: (props) => (
307307
<MyButton {...props} onPress={() => {
308308
// Do something
309309
}}>
@@ -322,7 +322,7 @@ const RootStack = createNativeStackNavigator({
322322
name="Home"
323323
component={HomeScreen}
324324
options={{
325-
headerLeft: (props) => (
325+
headerRight: (props) => (
326326
<MyButton
327327
{...props}
328328
onPress={() => {

0 commit comments

Comments
 (0)