You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-15 23:00:36 +02:00
Got RN working again
This commit is contained in:
24
ReactNativeClient/lib/components/screens/notes-utils.js
Normal file
24
ReactNativeClient/lib/components/screens/notes-utils.js
Normal file
@ -0,0 +1,24 @@
|
||||
import { Note } from 'lib/models/note.js'
|
||||
|
||||
class NotesScreenUtils {
|
||||
|
||||
static openNoteList(folderId) {
|
||||
return Note.previews(folderId).then((notes) => {
|
||||
this.dispatch({
|
||||
type: 'NOTES_UPDATE_ALL',
|
||||
notes: notes,
|
||||
});
|
||||
|
||||
this.dispatch({
|
||||
type: 'Navigation/NAVIGATE',
|
||||
routeName: 'Notes',
|
||||
folderId: folderId,
|
||||
});
|
||||
}).catch((error) => {
|
||||
Log.warn('Cannot load notes from ' + folderId, error);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export { NotesScreenUtils }
|
Reference in New Issue
Block a user