1.0.0 • Published 1 year ago

react-native-sliding-puzzle v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

react-native-verification

image image

Documentation

Params

KeyDescriptionTypeDefault
type验证码类型string'img','number'
stringArr数字验证码-内容数组array"1",...,"a",...,"A",...
fontWeight数字验证码-字体宽度array'normal','bold','100',...
num数字验证码-数字个数number4
minFont数字验证码-最小字体number23
maxFont数字验证码-最大字体number40
minDeg数字验证码-最小旋转角度number-45
maxDeg数字验证码-最大旋转角度number45
font数字验证码-字号array'italic','normal'
rightMove图片验证码-滑块移动正确距离(比填)number164
offset图片验证码-滑块移动正确距离误差值number3
itemImg图片验证码-滑块图片object{uri:url} /require(url)
backGroundImg图片验证码-滑块背景图片object{uri:url} /require(url)
getValue回调值,数字验证码返回随机内容,图片验证码显示true/falsefunc

Usage

Step 1 - install

	npm install react-native-verification --save

Step 2 - import and use in project

    import Verification from 'react-native-verification'
    <View style={{ 
      flex:1,
      alignItems:'center',
      justifyContent:'center',}}>
      <Verification 
          type={'img'} 
          getValue={(value)=>console.log(value)}  
         
          />
      <Verification 
          type={'number'} 
          getValue={(value)=>console.log(value)}  
         
          />
    </View>