I have a really hard time figuring out how to handle numbers best.
There are two main problems here:
My initialValue is an integer, which will not get displayed by the react-native TextInput
validatorjs only validates strings
I don't really want to translate all my number props of my models to strings beforehand. Afterwards I can't really intercept the value because it will get handled by redux-form. Any idea here?
edit: The documentation of redux-form says, that value will be either a bool or a string, which is not the case by me... hm
I have a really hard time figuring out how to handle numbers best.
There are two main problems here:
I don't really want to translate all my number props of my models to strings beforehand. Afterwards I can't really intercept the
value
because it will get handled by redux-form. Any idea here?edit: The documentation of redux-form says, that
value
will be either a bool or a string, which is not the case by me... hm