File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
android/src/main/java/com/reactnativekeyboardcontroller/views/overlay Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -63,16 +63,15 @@ class OverKeyboardHostView(private val reactContext: ThemedReactContext) : React
63
63
64
64
fun show () {
65
65
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 ,
68
68
// This type ensures it floats over other application windows but under system windows
69
69
WindowManager .LayoutParams .TYPE_APPLICATION_PANEL ,
70
70
// Ensures touches outside the view pass through to other windows
71
71
WindowManager .LayoutParams .FLAG_NOT_FOCUSABLE or WindowManager .LayoutParams .FLAG_LAYOUT_NO_LIMITS ,
72
72
PixelFormat .TRANSLUCENT ,
73
73
)
74
74
75
- // Now add the view to the WindowManager
76
75
windowManager.addView(hostView, layoutParams)
77
76
}
78
77
Original file line number Diff line number Diff line change @@ -99,9 +99,8 @@ - (instancetype)initWithBridge:(RCTBridge *)bridge
99
99
{
100
100
self = [super initWithFrame: CGRectZero];
101
101
if (self) {
102
- _contentView = [[UIView alloc ] initWithFrame: CGRectZero];
103
-
104
102
_touchHandler = [[RCTTouchHandler alloc ] initWithBridge: bridge];
103
+ _contentView = [[UIView alloc ] initWithFrame: CGRectZero];
105
104
}
106
105
return self;
107
106
}
You can’t perform that action at this time.
0 commit comments