Skip to content

How to handle numbers? #4

@ms88privat

Description

@ms88privat

I have a really hard time figuring out how to handle numbers best.

There are two main problems here:

  1. My initialValue is an integer, which will not get displayed by the react-native TextInput
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions