我是原生开发者,刚开始学习ReactNative遇到各种坑,一个项目2天没运行起来,那种挫败感有点怀疑人生,慢慢的懂得其中的问题。
正文:
使用官方的 'react-native-scrollable-tab-view',只要import就报错,很纳闷项目中还没开始使用,就直接报错。
效果图如下:

1.导入ScrollView,如图:

2.切换按钮:

3.在ScrollView放两个ListView,供按钮切换

4.附上ListView的row(行)的写法

我是原生开发者,刚开始学习ReactNative遇到各种坑,一个项目2天没运行起来,那种挫败感有点怀疑人生,慢慢的懂得其中的问题。
正文:
使用官方的 'react-native-scrollable-tab-view',只要import就报错,很纳闷项目中还没开始使用,就直接报错。
效果图如下:
1.导入ScrollView,如图:
2.切换按钮:
3.在ScrollView放两个ListView,供按钮切换
4.附上ListView的row(行)的写法
本文标题:ReactNative 自定义页签切换ListView
本文链接:https://www.haomeiwen.com/subject/rwyblxtx.html
网友评论