react-native-listview
v0.0.16
Published
listview是react native中上拉翻页插件
Downloads
34
Maintainers
Readme
install
npm install --save react-native-listview
App
目前ios版"啊呀share"所使用当前插件
###example
import React,{Component} from 'react';
import {View,Text,StyleSheet,Image,TouchableOpacity} from 'react-native';
import Listv from 'react-native-listview';
export default class extends Component {
render(){
const {navigator}=this.props;
return(
<Listv pagesize={5}
kind={0}
component={NewsContent}
navigator={navigator}
url='http://o9ji2nqbn.bkt.clouddn.com/news.json'/>
);
}
}
API
###kind {0}默认,{1},{2},目前三种布局 ###pagesize 每页条数
navigator{...props}
组件导航继承,没有这个无法进入子页面操作,会报bug
url
数据源地址,可以异步,里面封装fetch
onEndReachedThreshold
离底部距离,默认0
#version
- v0.0.15 update