File tree Expand file tree Collapse file tree
RCTSplashScreen/RCTSplashScreen Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ + (void)open:(RCTRootView *)v withImageNamed:(NSString *)imageName {
2323 UIImageView *view = [[UIImageView alloc ]initWithFrame:[UIScreen mainScreen ].bounds];
2424
2525 view.image = [UIImage imageNamed: imageName];
26-
26+ view.contentMode = UIViewContentModeScaleAspectFit;
27+
2728 [[NSNotificationCenter defaultCenter ] removeObserver: rootView name: RCTContentDidAppearNotification object: rootView];
2829
2930 [rootView setLoadingView: view];
Original file line number Diff line number Diff line change 77 <objects >
88 <placeholder placeholderIdentifier =" IBFilesOwner" id =" -1" userLabel =" File's Owner" />
99 <placeholder placeholderIdentifier =" IBFirstResponder" id =" -2" customClass =" UIResponder" />
10- <view contentMode =" scaleToFill " id =" iN0-l3-epB" >
10+ <view contentMode =" scaleAspectFill " id =" iN0-l3-epB" >
1111 <rect key =" frame" x =" 0.0" y =" 0.0" width =" 480" height =" 480" />
1212 <autoresizingMask key =" autoresizingMask" widthSizable =" YES" heightSizable =" YES" />
1313 <subviews >
14- <imageView userInteractionEnabled =" NO" contentMode =" scaleToFill " horizontalHuggingPriority =" 251" verticalHuggingPriority =" 251" image =" splash.png" translatesAutoresizingMaskIntoConstraints =" NO" id =" ZkI-RL-69Z" >
14+ <imageView userInteractionEnabled =" NO" contentMode =" scaleAspectFill " horizontalHuggingPriority =" 251" verticalHuggingPriority =" 251" image =" splash.png" translatesAutoresizingMaskIntoConstraints =" NO" id =" ZkI-RL-69Z" >
1515 <rect key =" frame" x =" 0.0" y =" 0.0" width =" 480" height =" 480" />
1616 </imageView >
1717 </subviews >
You can’t perform that action at this time.
0 commit comments