mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-02 09:18:38 +08:00
Replace usage of label with title prop for Buttons (#194)
This commit is contained in:
committed by
Satyajit Sahoo
parent
125159040c
commit
d2fc150f69
@@ -21,7 +21,7 @@ class MyHomeScreen extends React.Component {
|
||||
return (
|
||||
<Button
|
||||
onPress={() => this.props.navigation.navigate('Notifications')}
|
||||
label="Go to notifications"
|
||||
title="Go to notifications"
|
||||
/>
|
||||
);
|
||||
}
|
||||
@@ -44,7 +44,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