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
23 lines
595 B
TypeScript
23 lines
595 B
TypeScript
import {createStackNavigator} from '@react-navigation/stack';
|
|
import BestList from './BestList';
|
|
import GymSet from './gym-set';
|
|
import ViewBest from './ViewBest';
|
|
|
|
const Stack = createStackNavigator<BestPageParams>();
|
|
export type BestPageParams = {
|
|
BestList: {};
|
|
ViewBest: {
|
|
best: GymSet;
|
|
};
|
|
};
|
|
|
|
export default function BestPage() {
|
|
return (
|
|
<Stack.Navigator
|
|
screenOptions={{headerShown: false, animationEnabled: false}}>
|
|
<Stack.Screen name="BestList" component={BestList} />
|
|
<Stack.Screen name="ViewBest" component={ViewBest} />
|
|
</Stack.Navigator>
|
|
);
|
|
}
|