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