Skip to content

Commit 5294690

Browse files
committed
fix: CI
1 parent f5087de commit 5294690

5 files changed

Lines changed: 15 additions & 8 deletions

File tree

android/src/main/java/com/reactnativekeyboardcontroller/managers/KeyboardToolbarExcludeViewManagerImpl.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ package com.reactnativekeyboardcontroller.managers
33
import com.facebook.react.bridge.ReactApplicationContext
44
import com.facebook.react.uimanager.ThemedReactContext
55
import com.reactnativekeyboardcontroller.views.KeyboardToolbarExcludeReactViewGroup
6-
import com.reactnativekeyboardcontroller.views.overlay.OverKeyboardHostView
76

87
@Suppress("detekt:UnusedPrivateProperty")
9-
class KeyboardToolbarExcludeViewManagerImpl(mReactContext: ReactApplicationContext) {
8+
class KeyboardToolbarExcludeViewManagerImpl(
9+
mReactContext: ReactApplicationContext,
10+
) {
1011
fun createViewInstance(reactContext: ThemedReactContext): KeyboardToolbarExcludeReactViewGroup =
1112
KeyboardToolbarExcludeReactViewGroup(reactContext)
1213

android/src/main/java/com/reactnativekeyboardcontroller/views/KeyboardToolbarExcludeReactViewGroup.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import com.facebook.react.uimanager.ThemedReactContext
55
import com.facebook.react.views.view.ReactViewGroup
66

77
@SuppressLint("ViewConstructor")
8-
class KeyboardToolbarExcludeReactViewGroup(reactContext: ThemedReactContext): ReactViewGroup(reactContext) {
8+
class KeyboardToolbarExcludeReactViewGroup(
9+
reactContext: ThemedReactContext,
10+
) : ReactViewGroup(reactContext) {
911
// semantic view used in KeyboardToolbar traverse algorithm
1012
}

ios/traversal/ViewHierarchyNavigator.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class ViewHierarchyNavigator: NSObject {
4242

4343
if let textInput = isValidTextInput(view) {
4444
textInputs.append(textInput)
45-
} else if (String(describing: type(of: view)) != "KeyboardToolbarExcludeView") {
45+
} else if String(describing: type(of: view)) != "KeyboardToolbarExcludeView" {
4646
for subview in view.subviews {
4747
findTextInputs(in: subview)
4848
}
@@ -90,7 +90,7 @@ public class ViewHierarchyNavigator: NSObject {
9090
if let validTextInput = isValidTextInput(view) {
9191
return validTextInput
9292
}
93-
93+
9494
guard String(describing: type(of: view)) != "KeyboardToolbarExcludeView" else { return nil }
9595

9696
// Determine the iteration order based on the direction

ios/views/KeyboardToolbarExcludeViewManager.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ @interface KeyboardToolbarExcludeView () <RCTKeyboardToolbarExcludeViewViewProto
4747
@end
4848
#endif
4949

50-
@implementation KeyboardToolbarExcludeView {}
50+
@implementation KeyboardToolbarExcludeView {
51+
}
5152

5253
#ifdef RCT_NEW_ARCH_ENABLED
5354
+ (ComponentDescriptorProvider)componentDescriptorProvider
@@ -77,7 +78,6 @@ - (instancetype)initWithBridge:(RCTBridge *)bridge
7778
}
7879
#endif
7980

80-
8181
#ifdef RCT_NEW_ARCH_ENABLED
8282
Class<RCTComponentViewProtocol> KeyboardToolbarExcludeViewCls(void)
8383
{

src/components/KeyboardToolbar/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,15 @@ const TEST_ID_KEYBOARD_TOOLBAR_DONE = `${TEST_ID_KEYBOARD_TOOLBAR}.done`;
7474
const KEYBOARD_TOOLBAR_HEIGHT = 42;
7575
const DEFAULT_OPACITY: HEX = "FF";
7676

77+
type KeyboardToolbarComponent = {
78+
Exclude: typeof RCTKeyboardToolbarExcludeView;
79+
} & React.FC<KeyboardToolbarProps>;
80+
7781
/**
7882
* `KeyboardToolbar` is a component that is shown above the keyboard with `Prev`/`Next` and
7983
* `Done` buttons.
8084
*/
81-
const KeyboardToolbar: React.FC<KeyboardToolbarProps> = ({
85+
const KeyboardToolbar: KeyboardToolbarComponent = ({
8286
content,
8387
theme = colors,
8488
doneText = "Done",

0 commit comments

Comments
 (0)