1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-21 23:17:42 +02:00

Add simple sharing facilities for Android

- react code should be cross platform but support needs to be added
    for ios
  - only shares plain text notes for now
This commit is contained in:
Caleb John
2018-07-20 11:04:25 +02:00
parent f63668350b
commit 8840631266
12 changed files with 129 additions and 6 deletions

View File

@ -174,8 +174,13 @@ shared.initState = async function(comp) {
mode: mode,
folder: folder,
isLoading: false,
fromShare: comp.props.sharedData ? true : false,
});
if (comp.props.sharedData) {
this.noteComponent_change(comp, 'body', comp.props.sharedData.value);
}
comp.lastLoadedNoteId_ = note ? note.id : null;
}
@ -190,4 +195,4 @@ shared.toggleIsTodo_onPress = function(comp) {
comp.setState(newState);
}
module.exports = shared;
module.exports = shared;