From c55fae1e2697520a55d23a0816552bec09920142 Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Sun, 10 Sep 2017 21:37:47 -0700 Subject: [PATCH] Removed support of nested content inside on iOS Summary: Use instead or (even better), implement it yourself using container and nested with `position: absolute;` styling. This diff was decoupled from D5189017 for more granularity. Reviewed By: mmmulani Differential Revision: D5779989 fbshipit-source-id: e0a724008e679426f61ed0841f9eff6d62fb943b --- Libraries/Image/RCTImageShadowView.m | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Libraries/Image/RCTImageShadowView.m b/Libraries/Image/RCTImageShadowView.m index ceed9c8b634926..3dc16c4f0d0f5e 100644 --- a/Libraries/Image/RCTImageShadowView.m +++ b/Libraries/Image/RCTImageShadowView.m @@ -13,13 +13,14 @@ @implementation RCTImageShadowView -- (void)insertReactSubview:(RCTShadowView *)subview atIndex:(NSInteger)atIndex +- (BOOL)isYogaLeafNode { - RCTLogWarn(@"Using with children is deprecated " - "and will be an error in the near future. " - "Please reconsider the layout or use instead."); + return YES; +} - [super insertReactSubview:subview atIndex:atIndex]; +- (BOOL)canHaveSubviews +{ + return NO; } @end