Don't capture touches
Summary: RCTRootView supports a property `passThroughTouches` which when set, allows touches to propagate to sibling views. To allow touches to reach RCTRootView, we also need to set `pointerEvents` on the RCTViews wrapping the child views. Reviewed By: javache Differential Revision: D4385443 fbshipit-source-id: 6291d8614870168f1c4cdf0ef5ff6e42e4a8ef63
This commit is contained in:
parent
6e9fe3707a
commit
3d1bdcc2e3
|
@ -89,8 +89,9 @@ class AppContainer extends React.Component {
|
|||
}
|
||||
|
||||
return (
|
||||
<View style={styles.appContainer}>
|
||||
<View style={styles.appContainer} pointerEvents="box-none">
|
||||
<View
|
||||
pointerEvents="box-none"
|
||||
collapsable={!this.state.inspector}
|
||||
key={this.state.mainKey}
|
||||
style={styles.appContainer} ref={(ref) => {this._mainRef = ref;}}>
|
||||
|
|
Loading…
Reference in New Issue