Massive/settings.ts
Brandon Presley b7f1c2192e Pause converting to typeorm due to odd error
ERROR  TypeError: Cannot read property 'getItem' of undefined

This error is located at:
    in FlatList (created by SetList)
    in RCTView (created by View)
    in View (created by Page)
    in Page (created by SetList)
    in SetList (created by SceneView)
...

I found an open issue on the react-native github which seems
related https://github.com/facebook/react-native/issues/31523
but after following all of their suggestions I still have the
same error. I tried:
- Removing @babel/plugin-proposal-class-properties & @babel/plugin-transform-flow-strip-types
- Adding @babel/plugin-transform-flow-strip-types
2022-10-31 13:20:36 +13:00

44 lines
624 B
TypeScript

import {Column, Entity, PrimaryColumn} from 'typeorm';
@Entity()
export default class Settings {
@PrimaryColumn('boolean')
alarm: boolean;
@Column('boolean')
vibrate: boolean;
@Column('text')
sound: string;
@Column('boolean')
notify: boolean;
@Column('boolean')
images: boolean;
@Column('boolean')
showUnit: boolean;
@Column('text')
color: string;
@Column('boolean')
steps: boolean;
@Column('text')
date: string;
@Column('boolean')
showDate: boolean;
@Column('text')
theme: string;
@Column('boolean')
showSets: boolean;
@Column('boolean')
noSound: boolean;
}