uilib-native 5.0.0-snapshot.7379 → 5.0.0-snapshot.7386

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.
@@ -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.7379",
3
+ "version": "5.0.0-snapshot.7386",
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",