mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-28 12:25:21 +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:
@@ -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