- render() {
- return (<View style={[styles.container]}>
- <PullView style={{width: Dimensions.get('window').width}} onPullRelease={this.onPullRelease} topIndicatorRender={this.topIndicatorRender} topIndicatorHeight={60}>
- <View style={{backgroundColor: '#eeeeee'}}>
- // 省略列表的数据
- </View>
- </PullView>
- </View>
- );
- }
- }
- const styles = StyleSheet.create({
- container: {
- flex: 1,
- justifyContent: 'center',
- alignItems: 'center',
- backgroundColor: '#F5FCFF',
- },
- welcome: {
- fontSize: 20,
- textAlign: 'center',
- margin: 10,
- },
- instructions: {
- textAlign: 'center',
- color: '#333333',
- marginBottom: 5,
- },
- });
来源: http://www.qdfuns.com/article/49219/c8bc47f2e3e102f0c88a50eadc28501d.html