0.2.9 • Published 11 months ago
@chainplatform/pull-to-refresh v0.2.9
@chainplatform/pull-to-refresh
React Native Pull To Refresh for React Native and React Native Web, support ScrollView and FlatList. Bring Pull To Refresh to Website.
Install
npm install @chainplatform/pull-to-refresh --saveor
yarn add @chainplatform/pull-to-refreshUsage
props:
- support full FlatList and ScrollView props
Example
import React from 'react';
import {StyleSheet} from 'react-native';
import ChainScrollView from '@chainplatform/pull-to-refresh';
class App extends React.Component {
onRefresh() {
this.setState({refreshing: true});
}
render() {
return (
<View style={{flex:1}}>
<ChainScrollView
ref={this.ref}
testID={"scroll_view"}
style={{ flexGrow: 1, flexBasis: 0, padding: 15 }}
scrollEventThrottle={16}
bounces={false}
overScrollMode="never"
scrollEnabled={true}
bouncesZoom={false}
horizontal={false}
alwaysBounceHorizontal={false}
alwaysBounceVertical={false}
refreshing_letters={"Loading"}
default_letters={"Pull to refresh"}
textStyle={
{
fontSize: 14,
fontWeight: 500,
color: !this.state.refreshing ? "#DDDDDD" : "green"
}
}
refreshing={this.state.refreshing}
onRefresh={() => this.onRefresh()}
>
</ChainScrollView>
</View>
);
}
}0.2.9
11 months ago
0.2.8
2 years ago
0.2.7
2 years ago
0.2.6
2 years ago
0.2.5
2 years ago
0.2.4
2 years ago
0.2.3
2 years ago
0.2.2
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.1.13
2 years ago
0.1.12
2 years ago
0.1.11
2 years ago
0.1.10
2 years ago
0.1.9
2 years ago
0.1.8
2 years ago
0.1.7
2 years ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.4
2 years ago
0.1.3
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago