2.0.4 • Published 7 years ago

react-native-drop-down v2.0.4

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

react-native-drop-down

A refresh component in pure javascript for support.

###Usage

####Step 1 - install

	npm install react-native-drop-down --save

####Step 2 DropView Usage Code like this:

import {DropView} from 'react-native-drop-down';

onDropRelease(resolve) {
  //do something
  setTimeout(() => {
          resolve();
      }, 3000);
}

<DropView onDropRelease={this.onDropRelease}>
  //<Children />
</DropView>

####Step 3 DropListView Usage Code like this:

import {DropListView} from 'react-native-drop-down';

onDropRelease(resolve) {
  //do something
  setTimeout(() => {
        resolve();
    }, 3000);
}

<DropListView onDropRelease={this.onPullRelease} {...and some ListView Props}/>

####Step 4 Properties

PropDefaultTypeDescription
stylenullstylestyle of the DropView or DropListView
dropOkMargin100numberDown to the height of the ok state
topIndicatorHeight30numberTop Refresh the height of the indicator
duration300numberThe duration of the animation
topIndicatorRendernullfuncDrop-down function to refresh the control
onDropRelease-funcDown to release the state to be implemented under the function
onDropOk-funcDown to ok the state to be implemented under the function
onDropDown-funcDown to drop down the state to be implemented under the function