Skip to content

Conversation

@eminsr
Copy link
Contributor

@eminsr eminsr commented Oct 20, 2021

Overview

With this PR react-native-dialog gains one-time code input with changeable length.
I needed a one-time code input implementation of native dialogs so implemented the functionality to the lib.
I don't know if this is a future that everyone would use since you can achieve the same functionality without altering the lib.

Simulator Screen Shot - iPhone 13 - 2021-10-20 at 13 48 47
Simulator Screen Shot - iPhone 13 - 2021-10-20 at 13 48 54

@mmazzarolo
Copy link
Owner

@eminsr thank you, looks awesome 👍 I'm gonna give it a try during the weekend.

Using PlatformColor for borderColor throws and error so I hardcoded the colors for android
Copy link
Owner

@mmazzarolo mmazzarolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested it, looks good! 👍 There are a couple of things I think we can improve later, but this is a solid starting point. Thanks for updating docs, etc. too!

@mmazzarolo mmazzarolo merged commit 961f9a0 into mmazzarolo:master Oct 23, 2021
github-actions bot pushed a commit that referenced this pull request Oct 23, 2021
# [9.2.0](v9.1.2...v9.2.0) (2021-10-23)

### Features

* Add `CodeInput` component ([#128](#128)) ([961f9a0](961f9a0))
@github-actions
Copy link

🎉 This PR is included in version 9.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants