Skip to content

🔢 React-Native component to input confirmation code for both Android and IOS

License

Notifications You must be signed in to change notification settings

xcarpentier/rn-verifcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

   react-native-suggester

npm downloads npm version

rn-verifcode

React-Native component to input confirmation code for both Android and IOS

  • customizable
  • fast paste SMS-code
  • copy from clipboard
  • reset code

How to use it ?

import * as React from 'react'
import { View, Button } from 'react-native'
import VerifCode from './src'

export default class App extends React.Component {
  state = {}
  ref = React.createRef()
  render() {
    return (
      <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
        <VerifCode ref={this.ref} onFulfill={code => alert(code)} />
        <Button title="reset" onPress={() => this.ref.current.reset()} />
      </View>
    )
  }
}

Props

interface Props extends TextInputProps {
  autofocus?: boolean
  numberOfDigits?: number
  onFulfill?(code: string): void
}

Hire an expert!

Looking for a ReactNative freelance expert with more than 12 years experience? Contact me from my website!

About

🔢 React-Native component to input confirmation code for both Android and IOS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published