Selaa lähdekoodia

horizontal scrollView insets fix

yogevbd 7 vuotta sitten
vanhempi
commit
c0f8f040b2
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      lib/ios/RNNSwizzles.m

+ 1
- 1
lib/ios/RNNSwizzles.m Näytä tiedosto

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;