add DatabaseProvider

This commit is contained in:
Barry Gitarts 2019-01-17 15:38:17 -05:00
parent 8c71a9a945
commit 4987d8057d
1 changed files with 5 additions and 2 deletions

View File

@ -1,8 +1,11 @@
import React from 'react';
import { render } from 'react-dom';
import DatabaseProvider from '@nozbe/watermelondb/DatabaseProvider';
import database from './db';
import App from './dapp';
render(
<App />,
document.getElementById('app')
<DatabaseProvider database={database}>
<App />
</DatabaseProvider>, document.getElementById('app')
);