Skip to content

Example project to demonstrate TypeORM with React Native.

Notifications You must be signed in to change notification settings

typeorm/react-native-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c70a1d1 · Mar 12, 2022

History

5 Commits
Apr 12, 2018
Apr 12, 2018
Apr 12, 2018
Apr 12, 2018
Apr 12, 2018
Apr 12, 2018
Apr 12, 2018
Apr 12, 2018
Apr 12, 2018
Aug 18, 2020
Apr 12, 2018
Apr 12, 2018
Apr 12, 2018
Apr 19, 2018
Apr 12, 2018
Apr 12, 2018

Repository files navigation

Using TypeORM with React Native

Starting with 0.2.0-alpha.44 TypeORM supports React Native with the react-native-sqlite-storage plugin. This example shows how you can use TypeORM in your app. Use react-native run-android to run this example on your device.

Add TypeORM to your app

  1. Follow the installation step for iOS and Android for the plugin
  2. Install TypeORM: npm install typeorm --save
  3. Install Node.js types: npm install @types/node --save-dev
  4. Add skipLibCheck: true to your tsconfig.json-file (Node.js and React Native define require)
  5. Use react-native as type for your connection option (read more about connection options)

Screenshot