halilb / react-native-textinput-effects

Text inputs with custom label and icon animations for iOS and android. Built with react native and inspired by Codrops.
MIT License
2.98k stars 291 forks source link

keyType doesn't work #56

Closed 2hyjun closed 7 years ago

2hyjun commented 7 years ago

I set property as keyType="decimal-pad" or keyType={"decimal-pad"} or 'number-pad', 'numeric'.. it doesn't works on Fumi with iphone simulator iphone7, android.

This problem appears only on me?

priyankpat commented 7 years ago

@2hyjun The correct syntax is keyboardType='decimal-pad'. If you wish to change the way return key looks, then you need to use returnKeyType='next' for example.

Options for keyboardType keyboardType?: enum('default', 'email-address', 'numeric', 'phone-pad', 'ascii-capable', 'numbers-and-punctuation', 'url', 'number-pad', 'name-phone-pad', 'decimal-pad', 'twitter', 'web-search')

Options for returnKeyType returnKeyType?: enum('done', 'go', 'next', 'search', 'send', 'none', 'previous', 'default', 'emergency-call', 'google', 'join', 'route', 'yahoo')

You can find detailed information about various props: RN TextInput

halilb commented 7 years ago

@PR1YANKPAT3L is definitely right. keyboardType={'decimal-pad'} works fine with Fumi.