TypeError: _ReanimatedModule.default.configureProps is not a function

See original GitHub issue

Description

  • Started this as a discussion but got no hits and it could be bug (certainly something I can’t figure out).
  • I am in the process of updating our app, updating Reanimated from 1.9.0 to 2.8.0, which also includes various updates to React Native 0.67, React Navigation 6 etc, so there could be issues there.
  • Every time I try to build the project, I encounter this error:
TypeError: _ReanimatedModule.default.configureProps is not a function

Simulator Screen Shot - iPhone 13 - 2022-06-27 at 15 29 43

  • The file in question looks to be in NavigationOptions.js, which for reference looks like:
export const navigationOptions = (options: Object): Object => ({
  navigation,
}: {
  navigation: NavigationStateType,
}) => ({
  ...options,
})

export const navigationOptionsWithTitle = (options: Object): Object => {
  const initialObject = { ...options }

  return ({ route }: {route: NavigationRouteType}) => ({
    ...initialObject,
    ...titleOptions,
    title: route?.params?.title || options?.title || ''
  })
}

export const navigationOptionsWithDrawer = (options: Object): Object => ({
  navigation,
}: {
  navigation: NavigationStateType,
}) => ({
  headerRight: () => <DrawerButton navigation={navigation} />,
  ...options,
})

export const navigationOptionsWithComponentTitle = (options: Object): Object => ({
  navigation,
}: {
  navigation: NavigationStateType,
}) => ({
  headerTitle: () => <NavigationHeaderTitle navigation={navigation} />,
  ...options,
})

Expected behaviour

  • Updating Reanimated should ideally not cause any errors.

Actual behaviour & steps to reproduce

  • This is a tough one as I’m not able to reproduce it. If someone has seen a similar issue then that would be helpful.
  • I’m thinking there could be some issue with our configuration of React Navigation, which for some reason isn’t working on Reanimated v2.

Snack or minimal code example

  • Unable to replicate this in a snack repo 😦(((

Package versions

name version
react-native 0.67.4
react-native-reanimated 2.8.0
NodeJS 14.17.6
Xcode 13.3
Java 11.0.11
Gradle 7.4.2

Affected platforms

  • Android
  • iOS
  • Web

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:5
  • Comments:23 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
mberatsanlicommented, Aug 4, 2022

I got this error too, I adjusted the resolutions in package.json, and it worked for me https://classic.yarnpkg.com/lang/en/docs/selective-version-resolutions/

  "resolutions": {
    "react-native-reanimated": "^2.9.1"
  },
2reactions
wodincommented, Aug 3, 2022

Another way to look for things like that would be to run npm why react-native-reanimated

Read more comments on GitHub >

github_iconTop Results From Across the Web

this.InnerNativeModule.configureProps is not a function in ...
I am running an android app that is created using react native expo. It is running fine on windows machine android studio emulator...
Read more >
typeerror: _reanimatedmodule.default.configureprops is not a ...
Please I am facing this error currently in my expo app, is there anyone that can help please, I just upgrade our app...
Read more >
react-native-reanimated: Versions - Openbase
Full version history for react-native-reanimated including change logs.
Read more >
Error With React Native And Android Studio (Undefined Is Not ...
Solvedreact native reanimated Android only -> E/ReactNativeJS: undefined is not an object (evaluating '_ReanimatedModule.default.configureProps ...
Read more >
Newest 'expo' Questions - Stack Overflow
TypeError : _ReanimatedModule.default.configureProps is not a function. (In '_ReanimatedModule.default.configureProps(Object.keys(.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found