1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-12 22:57:38 +02:00

implemented own navigator

This commit is contained in:
Laurent Cozic
2017-07-14 18:49:14 +00:00
parent 4dc540e589
commit 18b5453146
14 changed files with 104 additions and 54 deletions

View File

@ -11,8 +11,9 @@ import { ActionButton } from 'lib/components/action-button.js';
import { dialogs } from 'lib/dialogs.js';
import { NotesScreenUtils } from 'lib/components/screens/notes-utils.js'
import DialogBox from 'react-native-dialogbox';
import { BaseScreenComponent } from 'lib/components/base-screen.js';
class NotesScreenComponent extends React.Component {
class NotesScreenComponent extends BaseScreenComponent {
static navigationOptions(options) {
return { header: null };
@ -52,7 +53,7 @@ class NotesScreenComponent extends React.Component {
const { navigate } = this.props.navigation;
return (
<View style={{flex: 1}}>
<View style={this.styles().screen}>
<ScreenHeader title={title} navState={this.props.navigation.state} menuOptions={this.menuOptions()} />
<NoteList noItemMessage={_('There are currently no notes. Create one by clicking on the (+) button.')} style={{flex: 1}}/>
<ActionButton addFolderNoteButtons={true} parentFolderId={this.props.selectedFolderId}></ActionButton>