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

[TextInput] onKeyPress attribute not showing smileys/emoji's in it's keyValue #22841

Closed
JayantJoseph opened this issue Jan 2, 2019 · 2 comments
Labels
Bug Component: TextInput Related to the TextInput component. Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@JayantJoseph
Copy link

Environment

React Native Environment Info:
System:
OS: Windows 10
CPU: (4) x64 Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz
Memory: 1.04 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

Note: I had already reported this bug 22689 , and it was in a lower version of react native. I updated the version and said the same in 22689, but still it got closed. That is why I'm submitting it again as the bot suggested.

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 the pressed smiley at all in most phones. In very few phones, I don't get 97% of smileys (Mi A2) .

Reproducible Demo

If you run this code and try to input smileys through the keyboard in phone, you won't be alerted any of the smileys in most phones, and won't be alerted 97% of smileys in very few phones ( Mi A2 ) .

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

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

stale bot commented Aug 2, 2019

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Aug 2, 2019
@stale
Copy link

stale bot commented Aug 9, 2019

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Aug 9, 2019
@facebook facebook locked as resolved and limited conversation to collaborators Aug 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Component: TextInput Related to the TextInput component. Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

3 participants