You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// db/models/Form.js
import { Model } from '@nozbe/watermelondb';
import { field, date, json, lazy } from '@nozbe/watermelondb/decorators';
export default class Form extends Model {
static table = 'forms';
@field('job_id') job_id;
@field('type') type;
@json('data', (sanitizedData) => sanitizedData) data;
@date('created_at') created_at;
@date('updated_at') updated_at;
}
Steps to reproduce:
npx @react-native-community/cli@latest init MelonTest cd MelonTest npm i && cd ios && pod install && cd .. npm install @nozbe/watermelondb npm install -D @babel/plugin-proposal-decorators
I then edited my babel.config.js file to look like this:
React native version
react-native --v
DB structure
Steps to reproduce:
npx @react-native-community/cli@latest init MelonTest
cd MelonTest
npm i && cd ios && pod install && cd ..
npm install @nozbe/watermelondb
npm install -D @babel/plugin-proposal-decorators
I then edited my
babel.config.js
file to look like this:Then I added this to my
ios/Podfile
:pod 'simdjson', path: '../node_modules/@nozbe/simdjson', modular_headers: true
:cd ios && pod install && cd ..
npm start --reset-cache --verbose
npm run ios -- --simulator="iPhone 15 Pro"
Error:
The text was updated successfully, but these errors were encountered: