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.
package/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomInputControllerTemp.m
CHANGED
|
@@ -13,7 +13,11 @@
|
|
|
13
13
|
|
|
14
14
|
#import "LNAnimatorTemp.h"
|
|
15
15
|
|
|
16
|
-
#
|
|
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
|
-
|
|
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