react-native-ficus-ui
react-native-ficus-ui copied to clipboard
TabPanel linkedTo property is not defined
TabPanel linkedTo property
The example code given on ficusUI is not working (but the demo is).
The property linkedTo is not recognized in the type PanelProps which create a critical typescript error that won't let further coding.
Type '{ children: Element; linkedTo: string; p: string; }' is not assignable to type 'IntrinsicAttributes & TabPanelProps'.
Property 'linkedTo' does not exist on type 'IntrinsicAttributes & TabPanelProps'
In ficus tabs code, the parent component Tabs is able to link the TabPanel with the TabList thanks to tabSceneMap and routes
In addition, the Tabs component given in example is missing three properties : navigationState, renderScene and selectedTab.
Type '{ children: Element[]; initialPage: number; onChangeTab: Dispatch<SetStateAction<number>>; selectedTab: number; }' is missing the following properties from type 'TabsProps<Route>': onIndexChange, navigationState, renderScene