Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keyValue of TextInput's onKeyPress not showing all smileys/emoji's (only a handful of smileys/emoji's are shown) #22689

Closed
JayantJoseph opened this issue Dec 18, 2018 · 3 comments
Labels
Component: Text Component: TextInput Related to the TextInput component. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@JayantJoseph
Copy link

JayantJoseph commented Dec 18, 2018

Environment

React Native Environment Info:
System:
OS: Windows 10
CPU: (4) x64 Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz
Memory: 1.71 GB / 7.91 GB
Binaries:
Yarn: 1.7.0 - ~\AppData\Roaming\npm\yarn.CMD
npm: 5.6.0 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version 3.1.0.0 AI-173.4819257

Packages:
react: 16.6.3
react-native: 0.57.8

Description

I am trying to get smileys through keyValue of onKeyPress attribute of TextInput.

Expected output: I get the pressed smiley
Actual output: I don't get 97% of pressed smiley

Note: I tried the same with latest react native version, still it exists

Reproducible Demo

If you run this code and try to input smileys through the keyboard in phone, you won't be alerted most of the smileys.

`import React from 'react'
import { View, TextInput } from 'react-native'

export default class TextInputCheck extends React.Component {

_onKeyPress = ({ nativeEvent: { key: keyValue } }) => {
    alert('Pressed: ' + keyValue)
}

render() {
            return (
                <View style={{flex: 1, justifyContent:'center',alignItems: 'center'}}>
                    <TextInput
                        onKeyPress={this._onKeyPress}
                    />
                </View>
            )
}

}
`

@JayantJoseph JayantJoseph changed the title keyValue of TextInput's onKeyPress not showing all smileys (only a handful of smileys are shown) keyValue of TextInput's onKeyPress not showing all smileys/emoji's (only a handful of smileys/emoji's are shown) Dec 18, 2018
@react-native-bot
Copy link
Collaborator

It looks like you are using an older version of React Native. Please update to the latest release, v0.57 and verify if the issue still exists.

The "⏪Old Version" label will be removed automatically once you edit your original post with the results of running react-native info on a project using the latest release.

@JayantJoseph
Copy link
Author

It looks like you are using an older version of React Native. Please update to the latest release, v0.57 and verify if the issue still exists.

The "⏪Old Version" label will be removed automatically once you edit your original post with the results of running react-native info on a project using the latest release.

@JayantJoseph JayantJoseph reopened this Dec 18, 2018
@react-native-bot react-native-bot added the Ran Commands One of our bots successfully processed a command. label Jan 2, 2019
@react-native-bot
Copy link
Collaborator

I am closing this issue because it does not appear to have been verified on the latest release, and there has been no followup in a while.

If you found this thread after encountering the same issue in the latest release, please feel free to create a new issue with up-to-date information by clicking here.

@facebook facebook locked as resolved and limited conversation to collaborators Jan 2, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jan 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Component: Text Component: TextInput Related to the TextInput component. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

2 participants