react-native-keyboard-controller 1.15.0 → 1.15.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.
@@ -251,7 +251,7 @@ class KeyboardAnimationCallback(
251
251
 
252
252
  var progress = 0.0
253
253
  try {
254
- progress = abs((height / persistentKeyboardHeight)).let { if (it.isNaN()) 0.0 else it }
254
+ progress = abs((height / persistentKeyboardHeight)).let { if (it.isNaN() || it.isInfinite()) 0.0 else it }
255
255
  } catch (e: ArithmeticException) {
256
256
  // do nothing, just log an exception send progress as 0
257
257
  Logger.w(TAG, "Caught arithmetic exception during `progress` calculation: $e")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-keyboard-controller",
3
- "version": "1.15.0",
3
+ "version": "1.15.1",
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",