HelloRN icon indicating copy to clipboard operation
HelloRN copied to clipboard

/03_library_demo/tab_demo/TopTabViewTest的问题

Open candebbs opened this issue 8 years ago • 0 comments

在"react-native-tab-view": "0.0.56",这个版本(原来版本是"react-native-tab-view": "0.0.48",),运行代码会报

Element type is invalid: expected a string(for built-in components) or a class/funtion(for composite components) but got:check then render method of 'TabViewTransitioner'

这个错误的。 0.0.56版本去掉TabViewTransitioner这个依赖的, 把TabBarTop改为TabBar就可以了,

    // optional callback which renders a header, useful for a top tab bar
    _renderHeader = (props) => {
        return <TabBar {...props}/>;
    }

运行成功,但是发现BannerTest的图片轮播不能拿不到图片,同时没有自动播放,估计滑动有冲突。

candebbs avatar Mar 03 '17 07:03 candebbs