diff --git a/ReactNativeClient/src/components/screens/note.js b/ReactNativeClient/src/components/screens/note.js index 9b929fdc6..01a195463 100644 --- a/ReactNativeClient/src/components/screens/note.js +++ b/ReactNativeClient/src/components/screens/note.js @@ -7,6 +7,7 @@ import { Registry } from 'src/registry.js' import { ScreenHeader } from 'src/components/screen-header.js'; import { Checkbox } from 'src/components/checkbox.js' import { NoteFolderService } from 'src/services/note-folder-service.js'; +import { _ } from 'src/locale.js'; class NoteScreenComponent extends React.Component { @@ -56,6 +57,20 @@ class NoteScreenComponent extends React.Component { }); } + deleteNote_onPress = (noteId) => { + Log.info('DELETE', noteId); + } + + attachFile_onPress = (noteId) => { + } + + menuOptions = () => { + return [ + { title: _('Attach file'), onPress: () => { this.attachFile_onPress(this.state.note.id); } }, + { title: _('Delete note'), onPress: () => { this.deleteNote_onPress(this.state.note.id); } }, + ]; + } + render() { const note = this.state.note; const isTodo = !!Number(note.is_todo); @@ -71,7 +86,7 @@ class NoteScreenComponent extends React.Component { return ( - + { isTodo && } diff --git a/ReactNativeClient/start_emulator.bat b/ReactNativeClient/start_emulator.bat index e441b7772..5665fef15 100644 --- a/ReactNativeClient/start_emulator.bat +++ b/ReactNativeClient/start_emulator.bat @@ -1,3 +1 @@ -c: -cd c:\Users\Laurent\AppData\Local\Android\sdk\tools -emulator.exe -avd Nexus_5X_API_23_Google_API_ \ No newline at end of file +c:\Users\Laurent\AppData\Local\Android\sdk\tools\emulator.exe -avd Nexus_5X_API_23_Google_API_ \ No newline at end of file