Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-native-slide-verify-view

youfat161.0.5

a component of slide verify view

react-native, react-native-slide-verify, 滑动验证, 验证码

readme

react-native-slide-verify-view

Getting started

$ npm install react-native-slide-verify-view --save

Usage

import SlideVerifyView from 'react-native-slide-verify-view';


// ... props
<SlideVerifyView
width={50}    // background width
height={50}    // background height
sliderLength={50}// slider width and height
sliderHeight={20} // option,if unset ,sliderHeight = sliderLength
defaultBackgroundColor={'#eaeaea'}    // default background color
successBackgroundColor={'#0098ff'} // background color when slider to right successful
permissibleError={10}// allow permissible error 
defaultText={'Slide To Verify'} // default background text
successText={'Validation Passed'}//  background text when slide to right successful
sliderDefaultColor={'#ffffff'} // slider default color 
onSuccessCallback={() => {}} // callback when slide to right successful
onFailCallback={() => {}} // fail callback 
defaultSliderPic={require('../res/ic_slider.png')}// slider default picture
defaultVerifySuccessPic={require('../res/ic_verify_success.png')} //picture when slide to right successful 
/>