You've already forked joplin
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user