React-native-reanimated: Android only -> E/ReactNativeJS: undefined is not an object (evaluating '_ReanimatedModule.default.configureProps')

Created on 8 Mar 2019  路  19Comments  路  Source: software-mansion/react-native-reanimated

Getting this error in logcat only on android:
screenshot 2019-03-08 at 17 39 36 10

Most helpful comment

Make sure that you've added
new ReanimatedPackage(),in MainApplication.java under getPackages

Import from: import com.swmansion.reanimated.ReanimatedPackage;

All 19 comments

@osdnk can you help me with this

Hey @jatin-mohindra ,

Try to open the app from Android Studio and build it from there - you need to build the APK again so the native modules will be available to you.

Hey @jatin-mohindra ,

Try to open the app from Android Studio and build it from there - you need to build the APK again so the native modules will be available to you.

@melkayam92 i tried that as well but it didn't work

@jatin-mohindra Could you provide more info about your setup? Maybe you forgot to link Reanimated module. Try to link it manually, it helps sometimes.

@jatin-mohindra Could you provide more info about your setup? Maybe you forgot to link Reanimated module. Try to link it manually, it helps sometimes.

@dsznajder I tried that as well using the react-native link command. I am using Reanimated module as a peer dependecy for react-native-tab-view alongwith react-native-gesture-handler.

Make sure that you've added
new ReanimatedPackage(),in MainApplication.java under getPackages

Import from: import com.swmansion.reanimated.ReanimatedPackage;

me too

me too,did you fix it?

@iktw it work,thank you

closing the issue; the solution provided by @iktw works.

@iktw , fix isnt working for me, anything changed?

for me too, not working

He's referring to this step, for react-native 0.59 or lower:
react-native link react-native-reanimated
react-native link react-native-gesture-handler

@kmagiera I have this problem as well, I did react-native link, cleaned gradle cache, built an app and it shows this error

Same problem using [email protected]. The only way to get Android to work was to link it. iOS left using dynamic link.

just uninstall the app and reinstall with react-native run-android

just uninstall the app and reinstall with react-native run-android

it work. thx

just uninstall the app and reinstall with react-native run-android

it work. thx

Thanks for acknowledgment

@sobanarshad85 yes, that was the missing piece for me as well. Thank you!

  • To others, do not manually link this if >= 0.6 react-native, just delete the installed dev Android app in the emulator and re-run, and that's when the auto-linking will happen.
Was this page helpful?
0 / 5 - 0 ratings