Installation
Getting the library
npm install react-native-realm-schema
or using yarn:
yarn add react-native-realm-schema
Configuring your project
- Enable decorator feature in
tsconfig.json
{
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true
}
}
- Using
@babel/plugin-proposal-decorators
:
module.exports = {
// ...
plugins: [
[
'@babel/plugin-proposal-decorators',
{
legacy: true,
},
],
]
}