mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-11 18:24:43 +02:00
cleanup
This commit is contained in:
parent
d238e1ab6c
commit
9529e401de
@ -86,28 +86,9 @@ class NoteScreen extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class ProfileScreen extends React.Component {
|
|
||||||
static navigationOptions = {
|
|
||||||
title: 'Profile',
|
|
||||||
};
|
|
||||||
render() {
|
|
||||||
const { navigate } = this.props.navigation;
|
|
||||||
return (
|
|
||||||
<Button
|
|
||||||
title="Go to main"
|
|
||||||
onPress={() =>
|
|
||||||
navigate('Notes')
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const AppNavigator = StackNavigator({
|
const AppNavigator = StackNavigator({
|
||||||
Notes: {screen: NotesScreen},
|
Notes: {screen: NotesScreen},
|
||||||
Note: {screen: NoteScreen},
|
Note: {screen: NoteScreen},
|
||||||
Profile: {screen: ProfileScreen},
|
|
||||||
});
|
});
|
||||||
|
|
||||||
class AppComponent extends React.Component {
|
class AppComponent extends React.Component {
|
||||||
|
Loading…
Reference in New Issue
Block a user