1.0.1 • Published 5 years ago

react-native-select-picker-modal v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

react-native-select-picker-modal

Simple select picker modal for React Native apps.

Installation

npm install react-native-select-picker-modal

Documentation

PropDescriptionTypeDefaultRequired
isOpenOpen state of select picker modal.boolean-YES
toggleFuncSet open state function.function-YES
titleTitle of select picker modal.stringnullNO
titleStyleCustom style for title.object-NO
titleComponentCustom component for title. If you're using titleComponent, titleStyle and title props is useless.anynullNO
selectionsItems for select picker.array-YES
valueValue state for selectionsany-YES
setValueSet value function for selectionsfunction-YES
easingAnimation easing. Please readstring'linear'NO
animationTimeAnimation time.number500NO
modalColorModal's background color.string'white'NO
backdropColorBackdrop's background color.string'rgba(0, 0, 0, 0.6)'NO
modalRadiusBorder radius value of modal.number15NO
modalStyleCustom style of modal.objectnullNO
isFullScreenFull screen state of modal.booleanfalseNO
onShowFunction to be run when modal is turned on.functionnullNO
onCloseFunction to be run when modal is turned off.functionnullNO
isShowCloseButtonShow close button state.booleanfalseNO
closeButtonTextIf you want to show close button, give that as parameter.stringnullNO
closeButtonStyleCustom style of close button.objectnullNO
closeButtonTextStyleCustom style of close button text.objectnullNO
closeButtonComponentCustom component for close button. If you're using closeButtonText, closeButtonStyle, closeButtonTextStyle is useless.anynullNO
unselectedItemStyleCustom style of unselected item.objectnullNO
selectedItemStyleCustom style of selected item.objectnullNO

Props table for selections array:

PropDescriptionTypeDefaultRequired
idItem id.number-YES
valueItem value.any-YES
textItem text.string-YES