Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/z-index-cherrypick-2' in…
Browse files Browse the repository at this point in the history
…to feature/z-index-cherrypick-2
  • Loading branch information
tuckerconnelly committed Jun 9, 2016
2 parents bb69e1a + 15425fd commit 9e8ea72
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Libraries/StyleSheet/LayoutPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ var LayoutPropTypes = {

// https://developer.mozilla.org/en-US/docs/Web/CSS/flex
flex: ReactPropTypes.number,

// https://developer.mozilla.org/en-US/docs/Web/CSS/z-index
zIndex: ReactPropTypes.number,
};

module.exports = LayoutPropTypes;
1 change: 1 addition & 0 deletions React/Views/RCTViewManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ - (RCTViewManagerUIBlock)uiBlockToAmendWithShadowViewRegistry:(__unused NSDictio
RCT_REMAP_VIEW_PROPERTY(shadowOpacity, layer.shadowOpacity, float)
RCT_REMAP_VIEW_PROPERTY(shadowRadius, layer.shadowRadius, CGFloat)
RCT_REMAP_VIEW_PROPERTY(overflow, clipsToBounds, css_clip_t)
RCT_REMAP_VIEW_PROPERTY(zIndex, layer.zPosition, CGFloat)
RCT_CUSTOM_VIEW_PROPERTY(shouldRasterizeIOS, BOOL, RCTView)
{
view.layer.shouldRasterize = json ? [RCTConvert BOOL:json] : defaultView.layer.shouldRasterize;
Expand Down
1 change: 1 addition & 0 deletions React/Views/RCTWebView.m
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ - (void)webView:(__unused UIWebView *)webView didFailLoadWithError:(NSError *)er

- (void)webViewDidFinishLoad:(UIWebView *)webView
{
self.superview.layer.zPosition = self.layer.zPosition;
if (_injectedJavaScript != nil) {
NSString *jsEvaluationValue = [webView stringByEvaluatingJavaScriptFromString:_injectedJavaScript];

Expand Down

0 comments on commit 9e8ea72

Please sign in to comment.