Brandon Presley
b7f1c2192e
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
41 lines
547 B
TypeScript
41 lines
547 B
TypeScript
import {Column, Entity, PrimaryGeneratedColumn} from 'typeorm';
|
|
|
|
@Entity('sets')
|
|
export default class GymSet {
|
|
@PrimaryGeneratedColumn()
|
|
id?: number;
|
|
|
|
@Column('text')
|
|
name: string;
|
|
|
|
@Column('int')
|
|
reps: number;
|
|
|
|
@Column('int')
|
|
weight: number;
|
|
|
|
@Column('int')
|
|
sets = 3;
|
|
|
|
@Column('int')
|
|
minutes = 3;
|
|
|
|
@Column('int')
|
|
seconds = 30;
|
|
|
|
@Column('boolean')
|
|
hidden = false;
|
|
|
|
@Column('text')
|
|
created?: string;
|
|
|
|
@Column('text')
|
|
unit?: string;
|
|
|
|
@Column('text')
|
|
image?: string;
|
|
|
|
@Column('text')
|
|
steps?: string;
|
|
}
|