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:
Sean Kinsey 2017-01-06 18:54:11 -08:00 committed by Facebook Github Bot
parent 6e9fe3707a
commit 3d1bdcc2e3
1 changed files with 2 additions and 1 deletions

View File

@ -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;}}>