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

getRawValue is not a function #247

Open
vivipolli opened this issue Feb 3, 2021 · 2 comments
Open

getRawValue is not a function #247

vivipolli opened this issue Feb 3, 2021 · 2 comments

Comments

@vivipolli
Copy link

Hey Guys, I get this error using TextInputMask

I call number value like this:

const ref...
const fileInput = useRef();

inside a function...
const numberValue = moneyField.getRawValue();

and my component ...

<TextInputMask placeholder="value" value={kids.value} masked="money" ref={moneyField} onChangeText={(value) => setValue({ ...kids, value })} />

Any ideia?

@marcosdourado
Copy link

marcosdourado commented Feb 4, 2021

Hey, @vivipolli

already tried: moneyField.current.getRawValue();

@JereLima
Copy link

onChangeText={(masked, unmasked) => console.log(typeof unmasked)}
the second parameter returns the item without mask

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

3 participants