mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-03-06 22:39:41 +08:00
Update DrawerNavigator.md (#212)
Button requires a title prop, and its same in other pages(tabbarNavigator, stackbarNavigator) but here it is label.
This commit is contained in:
committed by
Satyajit Sahoo
parent
eabec0d3b8
commit
80016d2fe8
@@ -20,7 +20,7 @@ class MyHomeScreen extends React.Component {
|
||||
return (
|
||||
<Button
|
||||
onPress={() => this.props.navigation.navigate('Notifications')}
|
||||
label="Go to notifications"
|
||||
title="Go to notifications"
|
||||
/>
|
||||
);
|
||||
}
|
||||
@@ -43,7 +43,7 @@ class MyNotificationsScreen extends React.Component {
|
||||
return (
|
||||
<Button
|
||||
onPress={() => this.props.navigation.goBack()}
|
||||
label="Go back home"
|
||||
title="Go back home"
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user