GetStream / stream-chat-react-native

💬 React-Native Chat SDK ➜ Stream Chat. Includes a tutorial on building your own chat app experience using React-Native, React-Navigation and Stream
https://getstream.io/chat/sdk/react-native/
Other
975 stars 325 forks source link

Not working with Expo 48 and expo router #2065

Closed Leqx closed 1 year ago

Leqx commented 1 year ago

Describe the bug When using the overlay provider I get an Error: Cannot find native module 'ExpoMediaLibrary'. Even though I've setup expo media library correctly as per the expo docs.

Dev environment info (please complete/provide the following information):

To Reproduce Steps to reproduce the behavior:

  1. Go to ' the app root _layout.tsx '
  2. Add 'OverlayProvider'
  3. App crashes 'when run'
  4. See error

Expected behavior I expected it to work out of the box following the guides provided in the docs.

Additional context I use the expo router for app navigation. Every file in the app directory automatically becomes a route in your mobile navigation, making it easier than ever to build, maintain, and scale your project. It's built on top of our powerful React Navigation suite enabling truly native navigation. The entire deep linking system is automatically generated live so that users can share links to any route in your app.

Screenshots issue

vanGalilea commented 1 year ago

This error should not be related to navigation. Something might be conflicting with the gesture handler.

We're going to work on integrating Expo router into our ExpoMessaging sample app and will inform you when up and running.

khushal87 commented 1 year ago

Hey @Leqx, we have integrated the expo router to our expo messaging app at examples/ExpoMessaging. Can you follow the package.json and match the changes to see if it fixes your issue. Thanks 😄

https://github.com/GetStream/stream-chat-react-native/pull/2150

stream-ci-bot commented 1 year ago

:tada: This issue has been resolved in version 5.15.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: