Permalink
Browse files

Fix passThroughTouches

Reviewed By: mmmulani

Differential Revision: D4438390

fbshipit-source-id: 4e1ec4eaf80ffb48ac7b65ed092402c51d9227d3
  • Loading branch information...
javache authored and facebook-github-bot committed Jan 23, 2017
1 parent 88eeea0 commit 7412340175afde52803437dba3c8af2d69bf1f62
Showing with 6 additions and 1 deletion.
  1. +2 −1 Libraries/ReactNative/AppContainer.js
  2. +4 −0 React/Base/RCTRootView.m
@@ -89,10 +89,11 @@ class AppContainer extends React.Component {
}
return (
<View style={styles.appContainer}>
<View style={styles.appContainer} pointerEvents="box-none">
<View
collapsable={!this.state.inspector}
key={this.state.mainKey}
pointerEvents="box-none"
style={styles.appContainer} ref={(ref) => {this._mainRef = ref;}}>
{this.props.children}
</View>
View
@@ -58,6 +58,8 @@ @implementation RCTRootView
NSString *_moduleName;
NSDictionary *_launchOptions;
RCTRootContentView *_contentView;
BOOL _passThroughTouches;
}
- (instancetype)initWithBridge:(RCTBridge *)bridge
@@ -154,6 +156,7 @@ - (BOOL)passThroughTouches
- (void)setPassThroughTouches:(BOOL)passThroughTouches
{
_passThroughTouches = passThroughTouches;
_contentView.passThroughTouches = passThroughTouches;
}
@@ -253,6 +256,7 @@ - (void)bundleFinishedLoading:(RCTBridge *)bridge
[self runApplication:bridge];
_contentView.backgroundColor = self.backgroundColor;
_contentView.passThroughTouches = _passThroughTouches;
[self insertSubview:_contentView atIndex:0];
if (_sizeFlexibility == RCTRootViewSizeFlexibilityNone) {

1 comment on commit 7412340

@grundmanise

This comment has been minimized.

Show comment
Hide comment
@grundmanise

grundmanise Mar 3, 2017

@javache can you give more context please. Do these changes fix the issue with hitTest:withEvent:?

grundmanise commented on 7412340 Mar 3, 2017

@javache can you give more context please. Do these changes fix the issue with hitTest:withEvent:?

Please sign in to comment.