Browse Source

horizontal scrollView insets fix

yogevbd 6 years ago
parent
commit
cbef2062f4
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      ios/RNNSwizzles.m

+ 1
- 1
ios/RNNSwizzles.m View File

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;