react-native-keyboard-controller 1.10.5 → 1.10.6

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.
@@ -1,4 +1,4 @@
1
- package com.reactnativekeyboardcontroller
1
+ package com.reactnativekeyboardcontroller.interactive
2
2
 
3
3
  object InteractiveKeyboardProvider {
4
4
  var shown = false
@@ -1,4 +1,4 @@
1
- package com.reactnativekeyboardcontroller
1
+ package com.reactnativekeyboardcontroller.interactive
2
2
 
3
3
  import android.os.CancellationSignal
4
4
  import android.view.View
@@ -1,4 +1,4 @@
1
- package com.reactnativekeyboardcontroller.interpolators
1
+ package com.reactnativekeyboardcontroller.interactive.interpolators
2
2
 
3
3
  interface Interpolator {
4
4
  /**
@@ -1,4 +1,4 @@
1
- package com.reactnativekeyboardcontroller.interpolators
1
+ package com.reactnativekeyboardcontroller.interactive.interpolators
2
2
 
3
3
  class IosInterpolator : Interpolator {
4
4
  override fun interpolate(
@@ -1,4 +1,4 @@
1
- package com.reactnativekeyboardcontroller.interpolators
1
+ package com.reactnativekeyboardcontroller.interactive.interpolators
2
2
 
3
3
  class LinearInterpolator : Interpolator {
4
4
  override fun interpolate(
@@ -18,11 +18,11 @@ import com.facebook.react.uimanager.ThemedReactContext
18
18
  import com.facebook.react.uimanager.UIManagerHelper
19
19
  import com.facebook.react.views.textinput.ReactEditText
20
20
  import com.facebook.react.views.view.ReactViewGroup
21
- import com.reactnativekeyboardcontroller.InteractiveKeyboardProvider
22
21
  import com.reactnativekeyboardcontroller.events.KeyboardTransitionEvent
23
22
  import com.reactnativekeyboardcontroller.extensions.dispatchEvent
24
23
  import com.reactnativekeyboardcontroller.extensions.dp
25
24
  import com.reactnativekeyboardcontroller.extensions.isKeyboardAnimation
25
+ import com.reactnativekeyboardcontroller.interactive.InteractiveKeyboardProvider
26
26
  import kotlin.math.abs
27
27
 
28
28
  private val TAG = KeyboardAnimationCallback::class.qualifiedName
@@ -11,11 +11,11 @@ import androidx.core.view.ViewCompat
11
11
  import androidx.core.view.WindowInsetsCompat
12
12
  import com.facebook.react.uimanager.ThemedReactContext
13
13
  import com.facebook.react.views.view.ReactViewGroup
14
- import com.reactnativekeyboardcontroller.KeyboardAnimationController
15
14
  import com.reactnativekeyboardcontroller.extensions.copyBoundsInWindow
16
- import com.reactnativekeyboardcontroller.interpolators.Interpolator
17
- import com.reactnativekeyboardcontroller.interpolators.IosInterpolator
18
- import com.reactnativekeyboardcontroller.interpolators.LinearInterpolator
15
+ import com.reactnativekeyboardcontroller.interactive.KeyboardAnimationController
16
+ import com.reactnativekeyboardcontroller.interactive.interpolators.Interpolator
17
+ import com.reactnativekeyboardcontroller.interactive.interpolators.IosInterpolator
18
+ import com.reactnativekeyboardcontroller.interactive.interpolators.LinearInterpolator
19
19
  import kotlin.math.absoluteValue
20
20
  import kotlin.math.roundToInt
21
21
 
@@ -12,7 +12,12 @@
12
12
  #import "FocusedInputLayoutChangedEvent.h"
13
13
  #import "FocusedInputTextChangedEvent.h"
14
14
  #import "KeyboardMoveEvent.h"
15
+
16
+ #if __has_include("react_native_keyboard_controller-Swift.h")
15
17
  #import "react_native_keyboard_controller-Swift.h"
18
+ #else
19
+ #import <react_native_keyboard_controller/react_native_keyboard_controller-Swift.h>
20
+ #endif
16
21
 
17
22
  #import <react/renderer/components/reactnativekeyboardcontroller/ComponentDescriptors.h>
18
23
  #import <react/renderer/components/reactnativekeyboardcontroller/EventEmitters.h>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-keyboard-controller",
3
- "version": "1.10.5",
3
+ "version": "1.10.6",
4
4
  "description": "Keyboard manager which works in identical way on both iOS and Android",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",