Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facing issue in updating stream version from v5.44.2 to v 6.1.0 (TypeError: (0, _reactNativeReanimated.useReducedMotion) is not a function. (In '(0, _reactNativeReanimated.useReducedMotion)()', '(0, _reactNativeReanimated.useReducedMotion)' is undefined)) #2867

Open
2 of 8 tasks
12varun12 opened this issue Dec 30, 2024 · 4 comments
Labels
Awaiting Confirmation Issues where questions are answered, but awaiting confirmation from author

Comments

@12varun12
Copy link

12varun12 commented Dec 30, 2024

Issue

initially my stream package on 5.22.1 i am update to v5.44.2 it is working in both ios and android, now i am trying to update to v6.1.0 i am facing issue

image

Describe your issue here

Steps to reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error
    etc...

Expected behavior

Project Related Information

Customization

Click To Expand

# N/A

Offline support

  • I have enabled offline support.
  • The feature I'm having does not occur when offline support is disabled. (stripe out if not applicable)

Environment

Click To Expand

package.json:

{
"name": "thousandgreens",
"version": "0.0.1",
"private": true,
"reactNativePermissionsIOS": [
"Camera"
],
"scripts": {
"android": "react-native run-android",
"android:clean": "cd android && ./gradlew clean && cd ..",
"android:dev": "cp -R 'dev/google-services.json' 'android/app' && ENVFILE=.env.dev react-native run-android",
"android:qa": "cp -R 'qa/google-services.json' 'android/app' && ENVFILE=.env.qa react-native run-android",
"android:staging": "cp -R 'staging/google-services.json' 'android/app' && ENVFILE=.env.staging react-native run-android",
"android:prod": "cp -R 'prod/google-services.json' 'android/app' && ENVFILE=.env.prod react-native run-android",
"ios": "react-native run-ios --simulator='iPhone 13'",
"ios:dev": "react-native run-ios --scheme 'thousandgreens-dev'",
"ios:qa": "react-native run-ios --scheme 'thousandgreens-qa'",
"ios:staging": "react-native run-ios --scheme 'thousandgreens-staging'",
"ios:prod": "react-native run-ios --scheme 'thousandgreens'",
"ios-8": "react-native run-ios --simulator='iPhone 8'",
"build:ios": "react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'",
"start": "react-native start",
"test": "jest",
"lint": "eslint .",
"postinstall": "patch-package && react-native setup-ios-permissions && pod-install",
"stagningEnv": "APP_ENV=staging",
"apk:dev": "cp -R 'dev/google-services.json' 'android/app' && react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ && cd android && ./gradlew clean && ENVFILE=.env.dev ./gradlew assembleRelease && cd ..",
"apk:qa": "cp -R 'qa/google-services.json' 'android/app' && react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ && cd android && ./gradlew clean && ENVFILE=.env.qa ./gradlew assembleRelease && cd ..",
"apk:staging": "cp -R 'staging/google-services.json' 'android/app' && react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ && cd android && ./gradlew clean && ENVFILE=.env.staging ./gradlew assembleRelease && cd ..",
"apk:prod": "cp -R 'prod/google-services.json' 'android/app' && react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ && cd android && ./gradlew clean && ENVFILE=.env.prod ./gradlew assembleRelease && cd ..",
"app:dev": "cp -R 'dev/google-services.json' 'android/app' && react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ && cd android && ./gradlew clean && ENVFILE=.env.dev ./gradlew bundleRelease && cd ..",
"app:staging": "cp -R 'staging/google-services.json' 'android/app' && react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ && cd android && ./gradlew clean && ENVFILE=.env.staging ./gradlew bundleRelease && cd ..",
"app:prod": "cp -R 'prod/google-services.json' 'android/app' && react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ && cd android && ./gradlew clean && ENVFILE=.env.prod ./gradlew bundleRelease && cd .."
},
"dependencies": {
"@apollo/client": "3.7.15",
"@fawazahmed/react-native-read-more": "3.0.2",
"@react-native-async-storage/async-storage": "1.17.11",
"@react-native-camera-roll/camera-roll": "5.2.4",
"@react-native-community/blur": "4.3.0",
"@react-native-community/checkbox": "0.5.14",
"@react-native-community/clipboard": "1.5.1",
"@react-native-community/geolocation": "2.0.2",
"@react-native-community/masked-view": "0.1.11",
"@react-native-community/netinfo": "9.3.7",
"@react-native-community/picker": "1.8.1",
"@react-native-community/push-notification-ios": "1.10.1",
"@react-native-firebase/app": "17.5.0",
"@react-native-firebase/auth": "17.5.0",
"@react-native-firebase/crashlytics": "17.5.0",
"@react-native-firebase/dynamic-links": "17.5.0",
"@react-native-firebase/messaging": "17.5.0",
"@react-native-firebase/storage": "17.5.0",
"@react-navigation/bottom-tabs": "6.0.5",
"@react-navigation/native": "5.7.3",
"@react-navigation/stack": "5.9.0",
"@rnmapbox/maps": "10.0.0-beta.70",
"@stream-io/flat-list-mvcp": "0.10.2",
"apollo": "2.34.0",
"apollo-cache-inmemory": "1.6.6",
"apollo-client": "2.6.10",
"apollo-link": "1.2.14",
"apollo-link-http": "1.5.5",
"apollo-link-ws": "1.0.20",
"apollo-utilities": "1.3.4",
"axios": "0.21.1",
"babel-plugin-transform-remove-console": "6.9.4",
"clevertap-react-native": "^3.0.0",
"country-state-city": "^3.2.1",
"dns": "file:./mock/dns",
"graphql": "15.3.0",
"graphql-request": "3.7.0",
"graphql-ws": "4.1.1",
"install": "0.13.0",
"intl": "^1.2.5",
"jetifier": "2.0.0",
"localstorage-polyfill": "1.0.1",
"moment": "2.29.4",
"papaparse": "^5.4.1",
"patch-package": "6.5.1",
"react": "18.2.0",
"react-apollo": "3.1.5",
"react-native": "0.70.3",
"react-native-background-timer": "2.4.1",
"react-native-blob-util": "0.19.11",
"react-native-calendars": "1.1293.0",
"react-native-compressor": "1.6.1",
"react-native-config": "1.5.0",
"react-native-device-info": "10.4.0",
"react-native-document-picker": "8.1.3",
"react-native-draggable-flatlist": "^4.0.1",
"react-native-elements": "3.4.3",
"react-native-fast-image": "8.6.3",
"react-native-fs": "2.20.0",
"react-native-geolocation-service": "5.2.0",
"react-native-gesture-handler": "2.9.0",
"react-native-google-places-autocomplete": "2.5.1",
"react-native-haptic-feedback": "1.14.0",
"react-native-html-to-pdf": "0.12.0",
"react-native-htmlview": "0.16.0",
"react-native-image-crop-picker": "0.39.0",
"react-native-image-picker": "5.1.0",
"react-native-image-resizer": "1.4.5",
"react-native-keyboard-aware-scroll-view": "0.9.5",
"react-native-linear-gradient": "2.6.2",
"react-native-otp-textinput": "1.0.0",
"react-native-pell-rich-editor": "^1.9.0",
"react-native-permissions": "3.10.0",
"react-native-phone-number-input": "2.1.0",
"react-native-picker-select": "8.0.4",
"react-native-push-notification": "8.1.1",
"react-native-raw-bottom-sheet": "2.2.0",
"react-native-reanimated": "2.17.0",
"react-native-render-html": "^6.3.4",
"react-native-safe-area-context": "4.5.0",
"react-native-screens": "2.10.1",
"react-native-share": "8.2.0",
"react-native-simple-toast": "^3.0.0",
"react-native-snap-carousel": "3.9.1",
"react-native-svg": "13.8.0",
"react-native-swiper": "1.6.0",
"react-native-toast-message": "^2.1.6",
"react-native-vector-icons": "9.2.0",
"react-native-video": "5.2.1",
"react-native-video-controls": "2.8.1",
"react-native-walkthrough-tooltip": "1.5.0",
"react-native-webview": "^13.6.4",
"rn-actionsheet-module": "1.0.4",
"rn-fetch-blob": "0.12.0",
"rollbar": "^2.26.4",
"rollbar-react-native": "^1.0.0-beta.3",
"sendbird": "3.1.32",
"stream-chat-react-native": "6.1.0",
"subscriptions-transport-ws": "0.9.18",
"swr": "0.3.1",
"yup": "0.29.3"
},
"devDependencies": {
"@babel/core": "7.16.5",
"@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6",
"@babel/plugin-proposal-optional-chaining": "7.21.0",
"@babel/plugin-transform-arrow-functions": "7.20.7",
"@babel/plugin-transform-shorthand-properties": "7.18.6",
"@babel/plugin-transform-template-literals": "7.18.9",
"@babel/preset-flow": "7.16.5",
"@babel/runtime": "7.16.5",
"@react-native-community/eslint-config": "3.2.0",
"babel-jest": "29.4.3",
"jest": "29.4.3",
"metro-react-native-babel-preset": "0.75.1",
"pod-install": "0.1.38",
"react-native-svg-transformer": "1.0.0",
"react-test-renderer": "18.2.0"
},
"jest": {
"preset": "react-native"
}
}

# N/A

react-native info output:

 OUTPUT GOES HERE
  • Platform that you're experiencing the issue on:
    • iOS
    • Android
    • iOS but have not tested behavior on Android
    • Android but have not tested behavior on iOS
    • Both
  • stream-chat-react-native version you're using that has this issue:
    "stream-chat-react-native": "6.1.0",
    "react-native-reanimated": "2.17.0",
    "react-native": "0.70.3",
  • Device/Emulator info:
    • I am using a physical device
    • OS version: e.g. Android 10
    • Device/Emulator: e.g. iPhone 11

Additional context

Screenshots

image
Click To Expand


@khushal87
Copy link
Member

Hey @12varun12, what is your react-native-reanimated and react-native-gesture-handler version?

@12varun12
Copy link
Author

12varun12 commented Dec 30, 2024 via email

@khushal87
Copy link
Member

khushal87 commented Dec 31, 2024

Upgrade your reanimated version to ^3.16.0 and gesture handler version to ^2.18.1

@khushal87
Copy link
Member

In our project, we have mentioned the peer deps of both the packages to as, so you have to be at least at these versions:

"react-native-gesture-handler": ">=2.16.1",
"react-native-reanimated": ">=3.16.0",

@khushal87 khushal87 added Awaiting Confirmation Issues where questions are answered, but awaiting confirmation from author and removed Needs Triaging labels Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Confirmation Issues where questions are answered, but awaiting confirmation from author
Projects
None yet
Development

No branches or pull requests

2 participants