Skip to content

mabels/fireproof-react-native

 
 

Repository files navigation

@fireproof/react-native

React Native bindings for Fireproof

Installation

  • Add @fireproof/react-native dependency. We also need to add any native module dependencies so they autolink properly.

    pnpm add @fireproof/react-native react-native-quick-crypto react-native-mmkv react-native-fast-encoder
    pnpm pods
    
  • Install polyfills as early as possible in your application (index.js or App.tsx)

    import '@fireproof/react-native/polyfills';
    

Development

To develop your application, run

pnpm start

in its root directory. Then select i or a to run iOS or Android simulators respectively. You might need to build with XCode or Android Studio at first, to properly compile the native modules.

See the example/ app for a working code sample.

Usage

import { useFireproof } from '@fireproof/react-native';
const { database, useDocument } = useFireproof('TodoDB');

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 67.2%
  • Kotlin 8.9%
  • Objective-C 7.9%
  • Ruby 7.5%
  • JavaScript 5.7%
  • Objective-C++ 2.8%