@realm/react-native-template-ts
v0.4.2
Published
React Native Template Realm TS
Downloads
14
Keywords
Readme
React Native Template Realm TypeScript
Usage
Simple React Native template to quickly get started with Realm.
This app implements a simple todo list, using Realm for persistence and the Realm React hooks for React integration. It supports sync, allowing users to login and sync their todo lists across multiple devices.
🚀 How to use
npx react-native init AwesomeRealmProject --template @realm/react-native-template-ts
🏃 How to build and run locally
- Setup React Native development Environment
- Build/Run on iOS 🍎
npm run ios
- Build/Run on Android 🤖
npm run android
💻 Start the Dev Client
npm start
💾 Testing changes to the template when developing
To test the template locally, run it like any other React Native app: npm i && npx pod-install
then npm run ios
.
🔀 Setting up sync
See https://github.com/realm/realm-js/blob/master/templates/docs/sync-setup.md for instructions.