Procházet zdrojové kódy

horizontal scrollView insets fix

yogevbd před 7 roky
rodič
revize
c0f8f040b2
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      lib/ios/RNNSwizzles.m

+ 1
- 1
lib/ios/RNNSwizzles.m Zobrazit soubor

50
 	id returnValue = __SWZ_initWithEventDispatcher_orig(self, _cmd, eventDispatcher);
50
 	id returnValue = __SWZ_initWithEventDispatcher_orig(self, _cmd, eventDispatcher);
51
 	
51
 	
52
 	if (@available(iOS 11.0, *)) {
52
 	if (@available(iOS 11.0, *)) {
53
-		[(UIScrollView*)[returnValue valueForKey:@"scrollView"] setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentAlways];
53
+		[(UIScrollView*)[returnValue valueForKey:@"scrollView"] setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentScrollableAxes];
54
 	}
54
 	}
55
 	
55
 	
56
 	return returnValue;
56
 	return returnValue;