Open kaueDM opened 7 years ago
Getting the same here
Getting the same issue when using data stored with persistStore. Works fine when data are not keep from one session to another.
I've found the reason is probably that the component receives a NaN
value, as it doesn't know how to draw it's progress path
, it crashes.
Also seeing this error.
Relevant debugger output:
props = {ReactStylesDiffMap@8656} "{ ReactStylesDiffMap: { NativeMap: {"d":[0,21,2.5,2,null,null]} } }"
t = {InvocationTargetException@8657} "java.lang.reflect.InvocationTargetException"
target = {UnexpectedNativeTypeException@8680} "com.facebook.react.bridge.UnexpectedNativeTypeException:
TypeError: expected dynamic type `double', but had type `null'"
I also found this was due to the progress
prop receiving NaN
. I had to check it beforehand using isNaN(n)
Would be good if this could be checked for in the component before it passes the value on.
Description
I got the following error when i run my project in an Android device. Works as expected in iOS emulator.
Expected Behavior
While the timer runs the progress will be increased, like what happens in the iOS emulator running the same project.
Device
Moto G4 Plus, Android 7.0
Code
Component
Initial state
componentWillMount hook
package.json
I'm using create-react-native-app