Skip to content

Support number-pad and other keyboard types #12

Description

@bolinfest

Currently, this check is hardcoded for the numeric keyboard type:

      if (screenY === height || this.props.keyboardType !== 'numeric') {
        bottom = -81;
      } else {
        bottom = endCoordinates.height - 40;
      }

But this does not do the right thing for keyboard types such as number-pad:

https://facebook.github.io/react-native/docs/textinput.html#keyboardtype

(Admittedly, the difference between the two is slight. It seems the only difference is the lack of a decimal point in number-pad mode.)

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