TypeError: undefined is not an object (evaluating 'route.component')
来源:1-6 Navigator的基本使用及页面间数据传递实现
李仲基
2018-09-18
import { Navigator } from "react-native-deprecated-custom-components";
<Navigator
renderScene={(route, navigator) => {
let Component = route.component;
return (
<Component
initialRoute={{ component: Boy }}
navigator={navigator}
{...route.params}
/>
);
}}
/>
老师您好,我这里为啥取不到route.component?
写回答
1回答
-
CrazyCodeBoy
2018-09-19
确认下你的RN版本在0.45一下哈
00
相似问题