Skip to content

Commit 0e0af40

Browse files
committed
chore: final cleanup
1 parent efcd33c commit 0e0af40

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

android/src/main/java/com/reactnativekeyboardcontroller/views/overlay/OverKeyboardViewGroup.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,15 @@ class OverKeyboardHostView(private val reactContext: ThemedReactContext) : React
6363

6464
fun show() {
6565
val layoutParams = WindowManager.LayoutParams(
66-
WindowManager.LayoutParams.MATCH_PARENT, // Width
67-
WindowManager.LayoutParams.MATCH_PARENT, // Height in pixels
66+
WindowManager.LayoutParams.MATCH_PARENT,
67+
WindowManager.LayoutParams.MATCH_PARENT,
6868
// This type ensures it floats over other application windows but under system windows
6969
WindowManager.LayoutParams.TYPE_APPLICATION_PANEL,
7070
// Ensures touches outside the view pass through to other windows
7171
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE or WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS,
7272
PixelFormat.TRANSLUCENT,
7373
)
7474

75-
// Now add the view to the WindowManager
7675
windowManager.addView(hostView, layoutParams)
7776
}
7877

ios/views/OverKeyboardViewManager.mm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,8 @@ - (instancetype)initWithBridge:(RCTBridge *)bridge
9999
{
100100
self = [super initWithFrame:CGRectZero];
101101
if (self) {
102-
_contentView = [[UIView alloc] initWithFrame:CGRectZero];
103-
104102
_touchHandler = [[RCTTouchHandler alloc] initWithBridge:bridge];
103+
_contentView = [[UIView alloc] initWithFrame:CGRectZero];
105104
}
106105
return self;
107106
}

0 commit comments

Comments
 (0)