index.js 707 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * @format
  3. */
  4. import {AppRegistry} from 'react-native';
  5. import App from './App';
  6. import {name as appName} from './app.json';
  7. // import { mySchema } from './database/schema';
  8. // import {Database} from '@nozbe/watermelondb';
  9. // import SQLiteAdapter from '@nozbe/watermelondb/adapters/sqlite'
  10. // import { setGenerator } from '@nozbe/watermelondb/utils/common/randomId';
  11. // import { v4 as uuidv4 } from 'uuid';
  12. // setGenerator(uuidv4);
  13. AppRegistry.registerComponent(appName, () => App);
  14. // const adapter = new SQLiteAdapter({
  15. // dbName: 'WatermelonDemo',
  16. // schema: mySchema
  17. // })
  18. // const database = new Database({
  19. // adapter,
  20. // modelClasses:[],
  21. // actionsEnabled: true
  22. // })