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

getting sync work in RN

This commit is contained in:
Laurent Cozic
2017-07-06 19:48:17 +00:00
parent 1c6b569795
commit 5802adc9f1
7 changed files with 99 additions and 55 deletions

View File

@ -26,6 +26,7 @@ import { MenuContext } from 'react-native-popup-menu';
import { SideMenu } from 'lib/components/side-menu.js';
import { SideMenuContent } from 'lib/components/side-menu-content.js';
import { DatabaseDriverReactNative } from 'lib/database-driver-react-native';
import { reg } from 'lib/registry.js';
let defaultState = {
notes: [],
@ -192,7 +193,7 @@ class AppComponent extends React.Component {
componentDidMount() {
let db = new Database(new DatabaseDriverReactNative());
//db.setDebugMode(false);
reg.setDb(db);
BaseModel.dispatch = this.props.dispatch;
NotesScreenUtils.dispatch = this.props.dispatch;