react-native-keyboard-controller 1.21.14 → 1.22.1

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.
Files changed (67) hide show
  1. package/README.md +1 -0
  2. package/android/src/fabric/java/com/reactnativekeyboardcontroller/KeyboardControllerModule.kt +4 -0
  3. package/android/src/main/java/com/reactnativekeyboardcontroller/modules/KeyboardControllerModuleImpl.kt +5 -0
  4. package/android/src/paper/java/com/reactnativekeyboardcontroller/KeyboardControllerModule.kt +5 -0
  5. package/ios/KeyboardBackdropController.swift +64 -0
  6. package/ios/KeyboardControllerModule.mm +11 -0
  7. package/ios/KeyboardControllerModuleImpl.swift +5 -0
  8. package/jest/index.js +1 -0
  9. package/lib/commonjs/bindings.js +1 -0
  10. package/lib/commonjs/bindings.js.map +1 -1
  11. package/lib/commonjs/components/KeyboardAwareScrollView/index.js +5 -1
  12. package/lib/commonjs/components/KeyboardAwareScrollView/index.js.map +1 -1
  13. package/lib/commonjs/components/KeyboardEffects/index.js +92 -0
  14. package/lib/commonjs/components/KeyboardEffects/index.js.map +1 -0
  15. package/lib/commonjs/components/KeyboardToolbar/constants.js +2 -3
  16. package/lib/commonjs/components/KeyboardToolbar/constants.js.map +1 -1
  17. package/lib/commonjs/components/KeyboardToolbar/index.js +8 -7
  18. package/lib/commonjs/components/KeyboardToolbar/index.js.map +1 -1
  19. package/lib/commonjs/components/index.js +7 -0
  20. package/lib/commonjs/components/index.js.map +1 -1
  21. package/lib/commonjs/constants.js +2 -1
  22. package/lib/commonjs/constants.js.map +1 -1
  23. package/lib/commonjs/index.js +7 -0
  24. package/lib/commonjs/index.js.map +1 -1
  25. package/lib/commonjs/module.js +1 -0
  26. package/lib/commonjs/module.js.map +1 -1
  27. package/lib/commonjs/specs/NativeKeyboardController.js.map +1 -1
  28. package/lib/commonjs/types/module.js.map +1 -1
  29. package/lib/module/bindings.js +1 -0
  30. package/lib/module/bindings.js.map +1 -1
  31. package/lib/module/components/KeyboardAwareScrollView/index.js +5 -1
  32. package/lib/module/components/KeyboardAwareScrollView/index.js.map +1 -1
  33. package/lib/module/components/KeyboardEffects/index.js +84 -0
  34. package/lib/module/components/KeyboardEffects/index.js.map +1 -0
  35. package/lib/module/components/KeyboardToolbar/constants.js +1 -2
  36. package/lib/module/components/KeyboardToolbar/constants.js.map +1 -1
  37. package/lib/module/components/KeyboardToolbar/index.js +2 -1
  38. package/lib/module/components/KeyboardToolbar/index.js.map +1 -1
  39. package/lib/module/components/index.js +1 -0
  40. package/lib/module/components/index.js.map +1 -1
  41. package/lib/module/constants.js +1 -0
  42. package/lib/module/constants.js.map +1 -1
  43. package/lib/module/index.js +1 -1
  44. package/lib/module/index.js.map +1 -1
  45. package/lib/module/module.js +1 -0
  46. package/lib/module/module.js.map +1 -1
  47. package/lib/module/specs/NativeKeyboardController.js.map +1 -1
  48. package/lib/module/types/module.js.map +1 -1
  49. package/lib/typescript/components/KeyboardEffects/index.d.ts +44 -0
  50. package/lib/typescript/components/KeyboardToolbar/constants.d.ts +0 -1
  51. package/lib/typescript/components/index.d.ts +2 -0
  52. package/lib/typescript/constants.d.ts +1 -0
  53. package/lib/typescript/index.d.ts +2 -2
  54. package/lib/typescript/specs/NativeKeyboardController.d.ts +1 -0
  55. package/lib/typescript/types/module.d.ts +7 -0
  56. package/package.json +2 -1
  57. package/src/bindings.ts +1 -0
  58. package/src/components/KeyboardAwareScrollView/index.tsx +8 -1
  59. package/src/components/KeyboardEffects/index.tsx +121 -0
  60. package/src/components/KeyboardToolbar/constants.ts +1 -2
  61. package/src/components/KeyboardToolbar/index.tsx +1 -1
  62. package/src/components/index.ts +2 -0
  63. package/src/constants.ts +1 -0
  64. package/src/index.ts +2 -0
  65. package/src/module.ts +1 -0
  66. package/src/specs/NativeKeyboardController.ts +1 -0
  67. package/src/types/module.ts +7 -0
@@ -82,6 +82,12 @@ export type KeyboardControllerModule = {
82
82
  * @see {@link https://kirillzyusko.github.io/react-native-keyboard-controller/docs/api/keyboard-controller#preload-|docs} page for more details.
83
83
  */
84
84
  preload: () => void;
85
+ /**
86
+ * Sets the keyboard backdrop translucency.
87
+ *
88
+ * @platform ios
89
+ */
90
+ setTranslucent: (translucent: boolean) => void;
85
91
  // all platforms
86
92
  /**
87
93
  * Dismisses the active keyboard. Removes a focus by default, but allows to pass `{keepFocus: true}` to keep focus.
@@ -121,6 +127,7 @@ export type KeyboardControllerNativeModule = {
121
127
  setInputMode: (mode: number) => void;
122
128
  // ios only
123
129
  preload: () => void;
130
+ setTranslucent: (translucent: boolean) => void;
124
131
  // all platforms
125
132
  dismiss: (keepFocus: boolean, animated: boolean) => void;
126
133
  setFocusTo: (direction: Direction) => void;