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

Prop 'type' doesn't change keyboard type #68

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

BogdanGorelkin
Copy link

When prop type was set to 'alphanumeric' the keyboard remains numeric.
Please approve it, because now it works perfectly for both types.
IMG_0453
IMG_0452

@anday013
Copy link
Owner

anday013 commented Sep 9, 2024

@BogdanGorelkin thank you, I'll test and merge

@skylarbarrera
Copy link

bumping this

@@ -5,7 +5,7 @@ import { OtpInputProps, OtpInputRef } from "./OtpInput.types";
import { VerticalStick } from "./VerticalStick";
import { useOtpInput } from "./useOtpInput";

export const OtpInput = forwardRef<OtpInputRef, OtpInputProps>((props, ref) => {
export const OtpInput = forwardRef<OtpInputRef, OtpInputProps>((props: OtpInputProps, ref) => {
Copy link
Owner

Choose a reason for hiding this comment

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

No need for this change; props types getting populated from forwardRef<> generics

@@ -15,7 +15,8 @@
"test:coverage": "jest --collectCoverage --coverageDirectory=\"./coverage\"",
"build:dev": "tsc",
"build:prod": "tsc -p tsconfig.prod.json",
"prepublishOnly": "npm install && npm run build:prod"
"prepublishOnly": "npm install && npm run build:prod",
"prepare": "npm run build:prod"
Copy link
Owner

Choose a reason for hiding this comment

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

why do we need it?

Copy link
Author

Choose a reason for hiding this comment

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

Without prepare script I was not able to get dist folder while installing my fork as:

npm install git@github.com:BogdanGorelkin/react-native-otp-entry.git

@anday013
Copy link
Owner

I tested, works fine, thank you. Just update the snapshot and address my comments, then we'll be good to go :)

@anday013
Copy link
Owner

@BogdanGorelkin hey, any updates here?

@BogdanGorelkin
Copy link
Author

@BogdanGorelkin hey, any updates here?

Hi, @anday013 , sure, check the answers above to your comments.
P.S. I've just pushed into my fork the updated snapshot and removed the extra passed interface

@southkeys
Copy link

can we merge this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants