File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed
ios/reactnativeuilib/keyboardtrackingview Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -503,12 +503,28 @@ - (void) rctContentDidAppearNotification:(NSNotification*)notification
503
503
});
504
504
}
505
505
506
+ -(CGFloat)getTabBarHeight
507
+ {
508
+ if (@available (iOS 11.0 , *)) {
509
+ UIWindow *window = UIApplication.sharedApplication .windows .firstObject ;
510
+ if ([window.rootViewController isKindOfClass: [UITabBarController class ]])
511
+ {
512
+ UITabBarController *tabBarController = [UITabBarController new ];
513
+ CGFloat tabBarHeight = tabBarController.tabBar .frame .size .height ;
514
+ CGFloat bottomPadding = window.safeAreaInsets .bottom ;
515
+ return tabBarHeight + bottomPadding;
516
+ }
517
+ }
518
+ return 0 ;
519
+ }
520
+
506
521
#pragma mark - ObservingInputAccessoryViewTempDelegate methods
507
522
508
523
-(void )updateTransformAndInsets
509
524
{
510
525
CGFloat bottomSafeArea = [self getBottomSafeArea ];
511
- CGFloat accessoryTranslation = MIN (-bottomSafeArea, -_ObservingInputAccessoryViewTemp.keyboardHeight );
526
+ CGFloat tabBarHeight = [self getTabBarHeight ];
527
+ CGFloat accessoryTranslation = MIN (-bottomSafeArea, -_ObservingInputAccessoryViewTemp.keyboardHeight + tabBarHeight);
512
528
513
529
if (_ObservingInputAccessoryViewTemp.keyboardHeight <= bottomSafeArea) {
514
530
_bottomViewHeight = kBottomViewHeightTemp ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " uilib-native" ,
3
- "version" : " 3.0.4 " ,
3
+ "version" : " 3.0.5 " ,
4
4
"homepage" : " https://github.com/wix/react-native-ui-lib" ,
5
5
"description" : " uilib native components (separated from js components)" ,
6
6
"main" : " components/index.js" ,
You can’t perform that action at this time.
0 commit comments