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

[BUG] - IOS Keyboard force comma #91

Open
mistre85 opened this issue Apr 2, 2023 · 0 comments
Open

[BUG] - IOS Keyboard force comma #91

mistre85 opened this issue Apr 2, 2023 · 0 comments

Comments

@mistre85
Copy link

mistre85 commented Apr 2, 2023

Describe the bug
In the IOS version the keyboard has a forcing of the "comma" character, but the component uses only the version with the "dot" character. I used a fix with ref, would it be possible to have a native props to fix this iussue?

this is the fix i made

function onChange(value) {
this.value = value.replace(",",".");
}

useEffect(()=>{
    if(inputRef!=null && inputRef.current != null){
        inputRef.current.onChange = onChange;
    }
},[inputRef])
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

No branches or pull requests

1 participant