uilib-native 5.0.0-snapshot.7383 → 5.0.0-snapshot.7390

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,7 +13,11 @@
13
13
 
14
14
  #import "LNAnimatorTemp.h"
15
15
 
16
- #import "RNNAppDelegate.h"
16
+ #if __has_include(<React-RCTAppDelegate/RCTAppDelegate.h>)
17
+ #import <React-RCTAppDelegate/RCTAppDelegate.h>
18
+ #elif __has_include(<React_RCTAppDelegate/RCTAppDelegate.h>)
19
+ #import <React_RCTAppDelegate/RCTAppDelegate.h>
20
+ #endif
17
21
 
18
22
  #define kHlperViewTag 0x1f1f1f
19
23
 
@@ -145,7 +149,7 @@ RCT_EXPORT_METHOD(presentCustomInputComponent:(nonnull NSNumber*)inputFieldTag p
145
149
  UIView* inputField = [self.bridge.uiManager viewForReactTag:inputFieldTag];
146
150
  NSDictionary *initialProps = params[@"initialProps"];
147
151
 
148
- RNNAppDelegate* appDelegate = (RNNAppDelegate*)[UIApplication sharedApplication].delegate;
152
+ RCTAppDelegate* appDelegate = (RCTAppDelegate*)[UIApplication sharedApplication].delegate;
149
153
  UIView *rv = [appDelegate.rootViewFactory viewWithModuleName:params[@"component"]
150
154
  initialProperties:initialProps];
151
155
 
@@ -168,6 +168,18 @@ typedef NS_ENUM(NSUInteger, KeyboardTrackingScrollBehavior) {
168
168
  -(void)layoutSubviews
169
169
  {
170
170
  [super layoutSubviews];
171
+
172
+ // Preserving the AccessoryView's Y position within its superview
173
+ CGFloat bottomSafeArea = [self getBottomSafeArea];
174
+ CGFloat tabBarHeight = [self getTabBarHeight];
175
+ CGFloat yOffset = MIN(-bottomSafeArea, -_ObservingInputAccessoryViewTemp.keyboardHeight + tabBarHeight);
176
+ if (self.frame.origin.y != yOffset) {
177
+ self.frame = CGRectMake(self.frame.origin.x,
178
+ yOffset,
179
+ self.frame.size.width,
180
+ self.frame.size.height);
181
+ }
182
+
171
183
  [self updateBottomViewFrame];
172
184
  }
173
185
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uilib-native",
3
- "version": "5.0.0-snapshot.7383",
3
+ "version": "5.0.0-snapshot.7390",
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",