Skip to content

Unable to use react-native-activity-feed with React native 0.71+ #325

@varunlakhan

Description

@varunlakhan

Setup (always fill this in):

  • iOS or Android? - Android
  • Expo or regular React Native? regular React Native
  • React Native Version: 0.71.3
  • react-native-activity-feed or expo-activity-feed version: npm list --pattern <package-name>/yarn list --pattern <package-name> 1.1.1
  • getstream version: npm list --pattern getstream/yarn list --pattern getstream 7.2.11

Describe the bug
I am trying to upgrade the version of my react native application from 0.55 to 0.71.3.
However while running the gradle build command - gradlew clean build I keep getting the below error:
Error: Unable to resolve module AccessibilityInfo from my-app-folder\node_modules\react-native-activity-feed\node_modules\react-native\Libraries\react-native\react-native-implementation.js: AccessibilityInfo could not be found within the project or in these directories:
node_modules\react-native-activity-feed\node_modules
node_modules
..\node_modules

When I looked inside the react-native-activity-feed folder inside my node_modules folder I see that there is node_modules folder for react-native-activity-feed itself and it has react-native version 0.55.4
I am a bit confused why are you exporting the node_modules folder?
My guess is during build time it's using this old version of react native instead of my latest version.

To Reproduce
Steps to reproduce the behavior:

  1. Go to app-folder/android
  2. Run command gradlew clean build
  3. See the error

Expected behavior
I expect react-native-activity-feed to work fine with react version 0.71.3 and the build to complete successfully.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions