Skip to content

Can't see decimal key when keyboardType="numeric" on my HTC device #17474

Description

@RituKhetan

Is this a bug report?
YES

Environment
Environment:
OS: Windows 8
Node: v9.3.0

npm: 4
Using EXPO app for testing
Packages: (wanted => installed)
"expo": "^23.0.4",
"react": "16.0.0",
"react-native": "0.50.3"

Target Platform: Android (4.4.2)

Steps to Reproduce
(Write your steps here:)

Install create-react-native-app (Run command: npm install -g create-react-native-app
Create a react-native-app (Go to a directory and run command: create-react-native-app tipcalc
Make changes in the App.js file: https://gist.github.com/RituKhetan/2306e5bed13f78cb5602dc9c1c21c90d
Expected Behavior
Should show numeric keypad with decimal key on my HTC device

Actual Behavior
Cannot see the decimal key on my HTC device when I try to type into the TextInput component.

Activity

  1. RituKhetan commented on Jan 8, 2018

    @RituKhetan
    Author

    Can someone please help?

  2. aemdy commented on Jan 31, 2018

    @aemdy

    Same here as well on at least Samsung Galaxy A3.

  3. react-native-bot commented on Feb 24, 2018

    @react-native-bot
    Collaborator

    Thanks for posting this! It looks like you may not be using the latest version of React Native, v0.53.0, released on January 2018. Can you make sure this issue can still be reproduced in the latest version?

    I am going to close this, but please feel free to open a new issue if you are able to confirm that this is still a problem in v0.53.0 or newer.

    How to Contribute • What to Expect from Maintainers

  4. added
    Ran CommandsOne of our bots successfully processed a command.
    StaleThere has been a lack of activity on this issue and it may be closed soon.
    on Feb 24, 2018
  5. xerotolerant commented on Mar 12, 2018

    @xerotolerant

    This problem still persits on Samsung devices.

  6. JaEdmuva commented on Mar 21, 2018

    @JaEdmuva

    I have the same issue with a HTC One and RN 0.54.2, anybody has a clean and safe solution?

  7. elly0t commented on Apr 6, 2018

    @elly0t

    any update on this?

  8. duyphambhtech commented on Apr 12, 2018

    @duyphambhtech

    It has the same issue for my s8+ but not for my s5 and s7 edge, please reopen

  9. csumrell commented on Apr 22, 2018

    @csumrell

    This is still a problem for a lot of my users

  10. aenciso commented on May 9, 2018

    @aenciso

    Also having issues on LG G5, G6, V30.

    Related issue:

    #12988

    Potential solution is to add autoCapitalize="none" to TextInput. I know it's not ideal but at least it shows decimal point on the keyboard.

  11. scriptgb commented on Jun 11, 2018

    @scriptgb

    When user uses Samsung Keyboard the issue, still persists. Anyone find a solution to that?

  12. scriptgb commented on Jun 15, 2018

    @scriptgb

    @JPanneel I'm using react-native 0.48.4, I tried to change the files manually but the behaviour stills the same. So, I need to upgrade the react-native version or there is something else that I can do to make this works.

  13. yanhaijing commented on Nov 2, 2018

    @yanhaijing

    Samsung s8 has the same issue

  14. amcsi commented on Nov 20, 2018

    @amcsi

    I'm getting the same issue on Samsung Galaxy S7. My girlfriend as well on her Xiaomi Redmi Plus 3.

        "expo": "^26.0.0",
        "react": "^16.3.2",
    "react-native": "https://github.com/expo/react-native/archive/sdk-26.0.0.tar.gz",
    
  15. kajal-mittal commented on Nov 29, 2018

    @kajal-mittal

    I found,Decimal-Key is not showing on devices having version less than 5.0.0 if we give keyboardType numeric.So,we check SystemVersion.If systemVersion <= '5.0.0' then we can open phone-pad keyboard ,otherwise open numeric keypad.

    <TextInput
    style={ { color: Colors.DEFAULT_TEXT_COLOR,
     ...Fonts.boldFont(66), flex: 0.8 }]}		
    underlineColorAndroid="transparent"				
    keyboardType={Platform.OS === 'android' ? (systemVersion <= '5.0.0' ? 'phone-pad' : 'numeric') : 'numeric'}
    }}
    />
    
  16. Silva-Amon commented on Jan 26, 2019

    @Silva-Amon

    Also having issues on LG G5, G6, V30.

    Related issue:

    #12988

    Potential solution is to add autoCapitalize="none" to TextInput. I know it's not ideal but at least it shows decimal point on the keyboard.

    It worked to me. Thank you!

  17. wsun commented on Feb 15, 2019

    @wsun
    Contributor

    I used keyboardType="decimal-pad" (#19714), but on LG devices running various Android versions (e.g. VS501, VS996, with Android 7 and 8) the decimal would not show on the keyboard.

    My TextInput didn't have autoCapitalize set to anything (it's a numeric use case, why would it?), but specifying autoCapitalize="none" fixed this issue for me as well, as suggested by others earlier.

    broken behavior, on VS501: https://i.imgur.com/5jZux4b.png
    fixed behavior: https://i.imgur.com/G9w0SDD.png

  18. yuvalkro commented on Feb 20, 2019

    @yuvalkro

    Had the same issue.
    Galaxy S8 showing decimal, Galaxy TAB S3 - not showing decimal.

    I have found that if I remove the editable property it's showing the decimal.

  19. locked as resolved and limited conversation to collaborators on Feb 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions