mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
13 lines
397 B
JavaScript
13 lines
397 B
JavaScript
|
|
import {Platform} from "react-native";
|
||
|
|
import Storage from "./Storage";
|
||
|
|
import EventSource from "rn-eventsource";
|
||
|
|
import AndroidEventSource from "./EventSource";
|
||
|
|
import Database from "notes-core/api/index";
|
||
|
|
|
||
|
|
global.Buffer = require('buffer').Buffer;
|
||
|
|
export const db = new Database(
|
||
|
|
Storage,
|
||
|
|
Platform.OS === 'ios' ? EventSource : AndroidEventSource,
|
||
|
|
);
|
||
|
|
db.host("https://192.168.10.8:5000")
|