react native UIElement native-base遇见的问题

在使用native-base 中的ActionSheet时遇见报错'underfind a object...'

在翻阅文档时发现,我们需要在跳转页面添加如下代码

import { Root } from "native-base";
import { StackNavigator } from "react-navigation";
const AppNavigator = StackNavigator(
  {
    Page: { screen: Page },
  }
);
export default () =>
  <Root>
    <AppNavigator />
  </Root>;

  

 

猜你喜欢

转载自www.cnblogs.com/xx929/p/9849460.html