Skip to content

Commit

Permalink
Don't capture touches
Browse files Browse the repository at this point in the history
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
  • Loading branch information
oyvindkinsey authored and facebook-github-bot committed Jan 7, 2017
1 parent 6e9fe37 commit 3d1bdcc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Libraries/ReactNative/AppContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;}}>
Expand Down

0 comments on commit 3d1bdcc

Please sign in to comment.