New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-native-pullview

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-pullview

PullView component in React Native both for Android and iOS, pull to refresh

Source
npmnpm
Version
1.0.4
Version published
Weekly downloads
12
140%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-pullview

This is the PullView component in React Native both for Android and iOS, pull to refresh, very useful & easily

This is a JavaScript-only implementation of PullView in React Native. Like ScrollView, this can host multiple components and views. Better than scrollview in Android, this PullView can be pull down, then show top indicator, the top indicator have three state: pulling, pullok, pullrelease. And more, you can use refreshControl to provide pull-to-refresh same as scrollview.

Demo

Demo project: (./react-native-pullview-demo)

Usage

1.Run npm install react-native-pullview --save 2.Code like this:

topIndicatorRender(pulling, pullok, pullrelease) {
    return <View style={{flex: 1, flexDirection: 'row', justifyContent: 'center', alignItems: 'center', height: 60}}>
        <ActivityIndicator size="small" color="gray" />
        {pulling ? <Text>下拉刷新2...</Text> : null}
        {pullok ? <Text>松开刷新2......</Text> : null}
        {pullrelease ? <Text>玩命刷新中2......</Text> : null}
    </View>;
}
<ScrollView onPullRelease={this.props.onRefresh} topIndicatorRender={this.topIndicatorRender} topIndicatorHeight={60} ></ScrollView>

More configuration

Licensed

MIT License

Keywords

PullView

FAQs

Package last updated on 26 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts