File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -402,17 +402,16 @@ - (void)didMoveToWindow
402
402
403
403
- (void )didSetProps : (NSArray <NSString *> *)changedProps
404
404
{
405
- #if !TARGET_OS_TV
406
405
if ([changedProps containsObject: @" inputAccessoryViewID" ] && self.inputAccessoryViewID ) {
407
406
[self setCustomInputAccessoryViewWithNativeID: self .inputAccessoryViewID];
408
407
} else if (!self.inputAccessoryViewID ) {
409
408
[self setDefaultInputAccessoryView ];
410
409
}
411
- #endif
412
410
}
413
411
414
412
- (void )setCustomInputAccessoryViewWithNativeID : (NSString *)nativeID
415
413
{
414
+ #if !TARGET_OS_TV
416
415
__weak RCTBaseTextInputView *weakSelf = self;
417
416
[_bridge.uiManager rootViewForReactTag: self .reactTag withCompletion: ^(UIView *rootView) {
418
417
RCTBaseTextInputView *strongSelf = weakSelf;
@@ -425,10 +424,12 @@ - (void)setCustomInputAccessoryViewWithNativeID:(NSString *)nativeID
425
424
}
426
425
}
427
426
}];
427
+ #endif /* !TARGET_OS_TV */
428
428
}
429
429
430
430
- (void )setDefaultInputAccessoryView
431
431
{
432
+ #if !TARGET_OS_TV
432
433
UIView<RCTBackedTextInputViewProtocol> *textInputView = self.backedTextInputView ;
433
434
UIKeyboardType keyboardType = textInputView.keyboardType ;
434
435
@@ -467,6 +468,7 @@ - (void)setDefaultInputAccessoryView
467
468
textInputView.inputAccessoryView = nil ;
468
469
}
469
470
[self reloadInputViewsIfNecessary ];
471
+ #endif /* !TARGET_OS_TV */
470
472
}
471
473
472
474
- (void )reloadInputViewsIfNecessary
You can’t perform that action at this time.
0 commit comments