15
15
16
16
#define kHlperViewTag 0x1f1f1f
17
17
18
- NSString *const RCTCustomInputControllerKeyboardResigendEvent = @" kbdResigned" ;
18
+ NSString *const RCTCustomInputControllerKeyboardResigendEventTemp = @" kbdResigned" ;
19
19
20
- @protocol _WXInputHelperViewDelegate <NSObject >
20
+ @protocol _WXInputHelperViewDelegateTemp <NSObject >
21
21
-(void )_WXInputHelperViewResignFirstResponder : (UIView*)wxInputHelperView ;
22
22
@end
23
23
24
- @interface _WXInputHelperView : UIView
24
+ @interface _WXInputHelperViewTemp : UIView
25
25
26
26
@property (nullable , nonatomic , readwrite , strong ) UIInputViewController *inputViewController;
27
- @property (nonatomic , weak ) id <_WXInputHelperViewDelegate > delegate;
27
+ @property (nonatomic , weak ) id <_WXInputHelperViewDelegateTemp > delegate;
28
28
@property (nullable , readwrite , strong ) UIView *inputAccessoryView;
29
29
@property (nonatomic ) BOOL keepInSuperviewOnResign;
30
30
31
31
@end
32
32
33
- @implementation _WXInputHelperView
33
+ @implementation _WXInputHelperViewTemp
34
34
35
35
- (BOOL )canBecomeFirstResponder
36
36
{
@@ -58,7 +58,7 @@ - (BOOL)resignFirstResponder
58
58
@end
59
59
60
60
61
- @interface RCTCustomInputControllerTemp () <_WXInputHelperViewDelegate > {
61
+ @interface RCTCustomInputControllerTemp () <_WXInputHelperViewDelegateTemp > {
62
62
UIWindow *_fullScreenWindow;
63
63
BOOL _performingExpandTransition;
64
64
}
@@ -81,7 +81,7 @@ - (dispatch_queue_t)methodQueue
81
81
82
82
- (NSArray <NSString *> *)supportedEvents
83
83
{
84
- return @[RCTCustomInputControllerKeyboardResigendEvent ];
84
+ return @[RCTCustomInputControllerKeyboardResigendEventTemp ];
85
85
}
86
86
87
87
RCT_EXPORT_MODULE (CustomInputControllerTemp)
@@ -144,7 +144,7 @@ - (BOOL)shouldUseSafeAreaFrom:(NSDictionary *)params {
144
144
RCTCustomKeyboardViewControllerTemp* customKeyboardController = [[RCTCustomKeyboardViewControllerTemp alloc ] initWithUsingSafeArea: useSafeArea];
145
145
customKeyboardController.rootView = rv;
146
146
147
- _WXInputHelperView * helperView = [[_WXInputHelperView alloc ] initWithFrame: CGRectZero];
147
+ _WXInputHelperViewTemp * helperView = [[_WXInputHelperViewTemp alloc ] initWithFrame: CGRectZero];
148
148
helperView.tag = kHlperViewTag ;
149
149
helperView.delegate = self;
150
150
@@ -210,7 +210,7 @@ - (BOOL)shouldUseSafeAreaFrom:(NSDictionary *)params {
210
210
UIView* inputField = [self .bridge.uiManager viewForReactTag: inputFieldTag];
211
211
if (inputField != nil )
212
212
{
213
- _WXInputHelperView * helperView = [inputField.superview viewWithTag: kHlperViewTag ];
213
+ _WXInputHelperViewTemp * helperView = [inputField.superview viewWithTag: kHlperViewTag ];
214
214
if (helperView != nil && [helperView isFirstResponder ])
215
215
{// restore the first responder only if it was already the first responder to prevent the keyboard from opening again if not necessary
216
216
[inputField reactFocus ];
@@ -232,7 +232,7 @@ -(void)changeKeyboardHeightForInput:(nonnull NSNumber*)inputFieldTag newHeight:(
232
232
UIView* inputField = [self .bridge.uiManager viewForReactTag: inputFieldTag];
233
233
if (inputField != nil )
234
234
{
235
- _WXInputHelperView * helperView = [inputField.superview viewWithTag: kHlperViewTag ];
235
+ _WXInputHelperViewTemp * helperView = [inputField.superview viewWithTag: kHlperViewTag ];
236
236
if (helperView != nil )
237
237
{
238
238
[((RCTCustomKeyboardViewControllerTemp*)helperView.inputViewController) setAllowsSelfSizing: YES ];
@@ -288,7 +288,7 @@ -(UIColor*)reactViewAvgColor:(RCTRootView*)rootView
288
288
UIView* inputField = [self .bridge.uiManager viewForReactTag: inputFieldTag];
289
289
if (inputField != nil )
290
290
{
291
- _WXInputHelperView * helperView = [inputField.superview viewWithTag: kHlperViewTag ];
291
+ _WXInputHelperViewTemp * helperView = [inputField.superview viewWithTag: kHlperViewTag ];
292
292
if (helperView != nil )
293
293
{
294
294
_performingExpandTransition = YES ;
@@ -318,7 +318,7 @@ -(UIColor*)reactViewAvgColor:(RCTRootView*)rootView
318
318
}];
319
319
320
320
[[LNAnimatorTemp animatorWithDuration: 0.5
321
- animations: @[[LNViewAnimation animationWithView: _fullScreenWindow keyPath: @" frame" toValue: [NSValue valueWithCGRect: [UIScreen mainScreen ].bounds]]]
321
+ animations: @[[LNViewAnimationTemp animationWithView: _fullScreenWindow keyPath: @" frame" toValue: [NSValue valueWithCGRect: [UIScreen mainScreen ].bounds]]]
322
322
completionHandler: ^(BOOL completed)
323
323
{
324
324
[UIView performWithoutAnimation: ^{
@@ -344,7 +344,7 @@ -(UIColor*)reactViewAvgColor:(RCTRootView*)rootView
344
344
UIView* inputField = [self .bridge.uiManager viewForReactTag: inputFieldTag];
345
345
if (inputField != nil )
346
346
{
347
- _WXInputHelperView * helperView = [inputField.superview viewWithTag: kHlperViewTag ];
347
+ _WXInputHelperViewTemp * helperView = [inputField.superview viewWithTag: kHlperViewTag ];
348
348
if (helperView != nil )
349
349
{
350
350
_performingExpandTransition = YES ;
@@ -366,7 +366,7 @@ -(UIColor*)reactViewAvgColor:(RCTRootView*)rootView
366
366
[_fullScreenWindow endEditing: YES ];
367
367
368
368
[[LNAnimatorTemp animatorWithDuration: 0.5
369
- animations: @[[LNViewAnimation animationWithView: _fullScreenWindow keyPath: @" frame" toValue: [NSValue valueWithCGRect: keyboardTargetFrame]]]
369
+ animations: @[[LNViewAnimationTemp animationWithView: _fullScreenWindow keyPath: @" frame" toValue: [NSValue valueWithCGRect: keyboardTargetFrame]]]
370
370
completionHandler: ^(BOOL completed)
371
371
{
372
372
RCTCustomKeyboardViewControllerTemp *customKeyboardViewController = (RCTCustomKeyboardViewControllerTemp*)helperView.inputViewController ;
@@ -388,13 +388,13 @@ -(UIColor*)reactViewAvgColor:(RCTRootView*)rootView
388
388
}
389
389
}
390
390
391
- #pragma mark - _WXInputHelperViewDelegate methods
391
+ #pragma mark - _WXInputHelperViewDelegateTemp methods
392
392
393
393
-(void )_WXInputHelperViewResignFirstResponder : (UIView*)wxInputHelperView
394
394
{
395
395
if (self.customInputComponentPresented )
396
396
{
397
- [self sendEventWithName: RCTCustomInputControllerKeyboardResigendEvent body: nil ];
397
+ [self sendEventWithName: RCTCustomInputControllerKeyboardResigendEventTemp body: nil ];
398
398
}
399
399
self.customInputComponentPresented = NO ;
400
400
}
0 commit comments