UNPKG

@nozbe/watermelondb

Version:

Build powerful React Native and React web apps that scale from hundreds to tens of thousands of records and remain fast

11 lines (7 loc) 303 B
// @flow import React from 'react' import type Database from '../Database' const DatabaseContext: React$Context<Database> = React.createContext<Database>((undefined: any)) const { Provider, Consumer } = DatabaseContext export { Consumer as DatabaseConsumer, Provider } export default DatabaseContext