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

Add .focus(), .blur(), onFocus(), onBlur() and isFocused() to Pressable #518

Closed
harinikmsft opened this issue Jul 24, 2020 · 4 comments · Fixed by #962
Closed

Add .focus(), .blur(), onFocus(), onBlur() and isFocused() to Pressable #518

harinikmsft opened this issue Jul 24, 2020 · 4 comments · Fixed by #962
Assignees
Labels
help wanted Extra attention is needed Partner: Facebook
Milestone

Comments

@harinikmsft
Copy link

From Keyboarding in React Native Desktop document:

Add .focus(), .blur(), onFocus(), onBlur() and isFocused() to Pressable. These are currently supported in View, TextInput.

@HeyImChris
Copy link

I'm not sure I know what you mean by Pressable as that's not an actual component. That said, support for onFocus and onBlur was recently added to Button, Text Input, TouchableBounce, TouchableHighlight, TouchableOpacity, and TouchableWithoutFeedback. Does that resolve this for you or is there something else that you need those events on?

@acoates-ms
Copy link
Collaborator

Pressable was added in 0.63.

@HeyImChris
Copy link

Gotcha thanks for the heads up. Will be a while until we can get to this then as we haven't started the 0.63 merge yet.

@chrisglein
Copy link
Member

Peer issue in the RNW repo: microsoft/react-native-windows#5589

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed Partner: Facebook
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants