Nijat Aliyev
Nijat Aliyev

Reputation: 894

React-native Atempt to invoke virtual method 'double java.lang.double.doublevalue()' on a null object reference (2019)

Seems to be a problem with react-native-reanimated

Upvotes: 0

Views: 2907

Answers (2)

Cidra
Cidra

Reputation: 87

In my particular case it was that a call to ToastAndroid.show(text, timeout) was missing the timeout parameter.

For these kinds of scenarios I recommend migrating to react native with typescript.

Upvotes: 0

Nijat Aliyev
Nijat Aliyev

Reputation: 894

Seems to be a problem with react-native-reanimated 1.5.0 which was released a few hours ago. Downgrading to 1.4.0 solved it

"react-native-reanimated": "1.4.0"

Upvotes: 2

Related Questions