pusher / pusher-websocket-react-native

React Native official Pusher SDK
MIT License
61 stars 52 forks source link

Expo managed react native app #122

Closed tuanthanh2067 closed 10 months ago

tuanthanh2067 commented 10 months ago

Hello everyone,

I couldn't find this information anywhere else, I think it's maybe not available but I'm looking for a way to use Pusher in my expo managed react native app. When I try to install it with npm install @pusher/pusher-websocket-react-native, and run the app, I got an error related to pod install. I tried to run it, and got a different error saying nopodfile' found in the project directory`

image

benw-pusher commented 10 months ago

Are you running pod install in the ios directory, not the root of the library?

tuanthanh2067 commented 10 months ago

@benw-pusher

Oh, this is an expo managed react native app, so there's no ios directory.

image

benw-pusher commented 10 months ago

Apologies, your screenshot with the complete error message didn't load when I last commented.

To solve the 'this package doesn't seem to be linked' error you need to follow the build instructions at https://docs.expo.dev/workflow/customizing/#adding-custom-native-code-with-development-builds. See https://github.com/pusher/pusher-websocket-react-native/issues/108 for more info on this.