Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request info #129

Open
rodgomesc opened this issue Feb 27, 2020 · 1 comment
Open

request info #129

rodgomesc opened this issue Feb 27, 2020 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@rodgomesc
Copy link

could someone please put a demo in this repository?

@jeremy-farnault jeremy-farnault added the help wanted Extra attention is needed label Mar 9, 2020
@jeremy-farnault
Copy link
Contributor

I won't have time to create one if someone feels like doing a PR, feel free.
You can try the really basic implementation and then have a play with the props I guess.

import * as React from 'react'
import {
  StyleSheet, View
} from "react-native"
import PINCode from '@haskkor/react-native-pincode'

type IProps = {}

type IState = {}

class PinCode extends React.PureComponent<IProps, IState> {

  render() {
    return (
      <View style={{flex: 1}}>
        <PINCode
          status={'enter'}
        />
      </View>
    )
  }
}

export default PinCode

const styles = StyleSheet.create({})

You could define the status ('choose', 'enter' or 'locked') in your state and change it based on the result functions ('endProcessFunction' etc).

If you need help just post your implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants