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

react-native下Flex会影响TouchableHighlight的onPress事件 #1108

Closed
kimjuny opened this issue Apr 8, 2017 · 4 comments
Closed

react-native下Flex会影响TouchableHighlight的onPress事件 #1108

kimjuny opened this issue Apr 8, 2017 · 4 comments
Assignees
Milestone

Comments

@kimjuny
Copy link
Contributor

kimjuny commented Apr 8, 2017

例如

TouchableHighlight(onPress={xxx})
  View
     Flex
       ...
     Flex
       ...
     Flex
       ...

整体被TouchableHighlight包裹,当我按下Flex下的控件时onPress事件就无法触发,只有我按其余的空白处才能触发onPress。这是BUG吗?

@warmhug
Copy link
Contributor

warmhug commented Apr 10, 2017

之前的问题在这里 #756 #769 (comment)

@silentcloud
Copy link
Contributor

facebook/react-native#6796

Flex 和 FlexItem 嵌套 Touchable,感觉要把这个移出去,Touch 的处理交给 children 来搞 @pingan1927

@silentcloud
Copy link
Contributor

下个 break change 版本将会把 Flex 内置的 TouchableWithoutFeedback 去掉,交给用户自己在 children 里去写

@silentcloud
Copy link
Contributor

closed for #2095

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants