|  | @@ -14,24 +14,25 @@
 | 
	
		
			
			| 14 | 14 |  	return self;
 | 
	
		
			
			| 15 | 15 |  }
 | 
	
		
			
			| 16 | 16 |  
 | 
	
		
			
			| 17 |  | -- (RNNReactView*)createRootView:(NSString*)name rootViewId:(NSString*)rootViewId reactViewReadyBlock:(RNNReactViewReadyCompletionBlock)reactViewReadyBlock {
 | 
	
		
			
			|  | 17 | +- (RNNReactView*)createRootView:(NSString*)name rootViewId:(NSString*)rootViewId availableSize:(CGSize)availableSize reactViewReadyBlock:(RNNReactViewReadyCompletionBlock)reactViewReadyBlock {
 | 
	
		
			
			| 18 | 18 |  	if (!rootViewId) {
 | 
	
		
			
			| 19 | 19 |  		@throw [NSException exceptionWithName:@"MissingViewId" reason:@"Missing view id" userInfo:nil];
 | 
	
		
			
			| 20 | 20 |  	}
 | 
	
		
			
			| 21 | 21 |  	
 | 
	
		
			
			| 22 | 22 |  	RNNReactView *view = [[RNNReactView alloc] initWithBridge:_bridge
 | 
	
		
			
			| 23 |  | -														   moduleName:name
 | 
	
		
			
			| 24 |  | -													initialProperties:@{@"componentId": rootViewId}
 | 
	
		
			
			| 25 |  | -												  reactViewReadyBlock:reactViewReadyBlock];
 | 
	
		
			
			|  | 23 | +												   moduleName:name
 | 
	
		
			
			|  | 24 | +											initialProperties:@{@"componentId": rootViewId}
 | 
	
		
			
			|  | 25 | +												availableSize:availableSize
 | 
	
		
			
			|  | 26 | +										  reactViewReadyBlock:reactViewReadyBlock];
 | 
	
		
			
			| 26 | 27 |  	return view;
 | 
	
		
			
			| 27 | 28 |  }
 | 
	
		
			
			| 28 | 29 |  
 | 
	
		
			
			| 29 | 30 |  - (UIView*)createRootViewFromComponentOptions:(RNNComponentOptions*)componentOptions {
 | 
	
		
			
			| 30 |  | -	return [self createRootView:componentOptions.name.get rootViewId:componentOptions.componentId.get reactViewReadyBlock:nil];
 | 
	
		
			
			|  | 31 | +	return [self createRootView:componentOptions.name.get rootViewId:componentOptions.componentId.get availableSize:CGSizeZero reactViewReadyBlock:nil];
 | 
	
		
			
			| 31 | 32 |  }
 | 
	
		
			
			| 32 | 33 |  
 | 
	
		
			
			| 33 | 34 |  - (UIView*)createRootViewFromComponentOptions:(RNNComponentOptions*)componentOptions reactViewReadyBlock:(RNNReactViewReadyCompletionBlock)reactViewReadyBlock {
 | 
	
		
			
			| 34 |  | -	return [self createRootView:componentOptions.name.get rootViewId:componentOptions.componentId.get reactViewReadyBlock:reactViewReadyBlock];
 | 
	
		
			
			|  | 35 | +	return [self createRootView:componentOptions.name.get rootViewId:componentOptions.componentId.get availableSize:CGSizeZero reactViewReadyBlock:reactViewReadyBlock];
 | 
	
		
			
			| 35 | 36 |  }
 | 
	
		
			
			| 36 | 37 |  
 | 
	
		
			
			| 37 | 38 |  @end
 |