react-native-keyboard-controller 1.21.3 → 1.21.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/fabric/java/com/reactnativekeyboardcontroller/KeyboardControllerModule.kt +2 -0
- package/android/src/main/java/com/reactnativekeyboardcontroller/extensions/ReactContext.kt +10 -0
- package/android/src/main/java/com/reactnativekeyboardcontroller/extensions/View.kt +0 -40
- package/android/src/main/java/com/reactnativekeyboardcontroller/listeners/WindowDimensionListener.kt +1 -0
- package/android/src/main/java/com/reactnativekeyboardcontroller/managers/KeyboardControllerViewManagerImpl.kt +5 -1
- package/android/src/main/java/com/reactnativekeyboardcontroller/modules/KeyboardControllerModuleImpl.kt +10 -10
- package/android/src/main/java/com/reactnativekeyboardcontroller/views/EdgeToEdgeReactViewGroup.kt +19 -22
- package/android/src/paper/java/com/reactnativekeyboardcontroller/KeyboardControllerModule.kt +2 -0
- package/ios/KeyboardControllerModule.mm +12 -0
- package/ios/observers/FocusedInputObserver.swift +9 -2
- package/ios/views/KeyboardExtenderContainerView.swift +14 -4
- package/lib/commonjs/bindings.js +4 -1
- package/lib/commonjs/bindings.js.map +1 -1
- package/lib/commonjs/components/KeyboardAwareScrollView/index.js +47 -10
- package/lib/commonjs/components/KeyboardAwareScrollView/index.js.map +1 -1
- package/lib/commonjs/components/KeyboardAwareScrollView/types.js.map +1 -1
- package/lib/commonjs/components/KeyboardToolbar/constants.js +2 -2
- package/lib/commonjs/components/KeyboardToolbar/constants.js.map +1 -1
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/constants.js +3 -1
- package/lib/commonjs/constants.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/specs/NativeKeyboardController.js.map +1 -1
- package/lib/commonjs/types/module.js.map +1 -1
- package/lib/module/bindings.js +4 -1
- package/lib/module/bindings.js.map +1 -1
- package/lib/module/components/KeyboardAwareScrollView/index.js +48 -11
- package/lib/module/components/KeyboardAwareScrollView/index.js.map +1 -1
- package/lib/module/components/KeyboardAwareScrollView/types.js.map +1 -1
- package/lib/module/components/KeyboardToolbar/constants.js +2 -2
- package/lib/module/components/KeyboardToolbar/constants.js.map +1 -1
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/constants.js +3 -0
- package/lib/module/constants.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/specs/NativeKeyboardController.js.map +1 -1
- package/lib/module/types/module.js.map +1 -1
- package/lib/typescript/components/KeyboardAwareScrollView/index.d.ts +1 -0
- package/lib/typescript/components/KeyboardAwareScrollView/types.d.ts +10 -0
- package/lib/typescript/components/index.d.ts +1 -1
- package/lib/typescript/constants.d.ts +1 -0
- package/lib/typescript/index.d.ts +1 -1
- package/lib/typescript/specs/NativeKeyboardController.d.ts +3 -1
- package/lib/typescript/types/module.d.ts +3 -0
- package/package.json +1 -1
- package/src/bindings.ts +3 -0
- package/src/components/KeyboardAwareScrollView/index.tsx +79 -29
- package/src/components/KeyboardAwareScrollView/types.ts +11 -0
- package/src/components/KeyboardToolbar/constants.ts +2 -3
- package/src/components/index.ts +1 -0
- package/src/constants.ts +4 -0
- package/src/index.ts +1 -0
- package/src/specs/NativeKeyboardController.ts +3 -1
- package/src/types/module.ts +4 -0
package/src/constants.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { KeyboardControllerNative } from "./bindings";
|
|
2
|
+
|
|
1
3
|
// copied from `android.view.WindowManager.LayoutParams`
|
|
2
4
|
export enum AndroidSoftInputModes {
|
|
3
5
|
SOFT_INPUT_ADJUST_NOTHING = 48,
|
|
@@ -17,3 +19,5 @@ export enum AndroidSoftInputModes {
|
|
|
17
19
|
SOFT_INPUT_STATE_UNSPECIFIED = 0,
|
|
18
20
|
SOFT_INPUT_STATE_VISIBLE = 4,
|
|
19
21
|
}
|
|
22
|
+
export const KEYBOARD_BORDER_RADIUS =
|
|
23
|
+
KeyboardControllerNative.getConstants().keyboardBorderRadius;
|
package/src/index.ts
CHANGED
|
@@ -3,7 +3,9 @@ import { TurboModuleRegistry } from "react-native";
|
|
|
3
3
|
import type { TurboModule } from "react-native";
|
|
4
4
|
|
|
5
5
|
export interface Spec extends TurboModule {
|
|
6
|
-
readonly getConstants: () => {
|
|
6
|
+
readonly getConstants: () => {
|
|
7
|
+
keyboardBorderRadius: number;
|
|
8
|
+
};
|
|
7
9
|
|
|
8
10
|
// methods
|
|
9
11
|
setInputMode(mode: number): void;
|
package/src/types/module.ts
CHANGED
|
@@ -130,4 +130,8 @@ export type KeyboardControllerNativeModule = {
|
|
|
130
130
|
// native event module stuff
|
|
131
131
|
addListener: (eventName: string) => void;
|
|
132
132
|
removeListeners: (count: number) => void;
|
|
133
|
+
// constants
|
|
134
|
+
getConstants: () => {
|
|
135
|
+
keyboardBorderRadius: number;
|
|
136
|
+
};
|
|
133
137
|
};
|