- Expo
- Expo config plugins
- WatermelonDB
In tsconfig.json :
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
Pass model as generic when getting collections :
await database.get<Post>("posts")
When using withDatabase
, type database using following type :
import { Database } from "@nozbe/watermelondb"
issue to fix to build on m1 : remove arm64 from excluded architectures expo/expo#15800 (comment)