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

Chat not working with Expo SDK 36.0.0 due to missing NetInfo dependencies #97

Closed
familywiser1 opened this issue Dec 12, 2019 · 2 comments
Assignees

Comments

@familywiser1
Copy link

familywiser1 commented Dec 12, 2019

Invariant Violation: NetInfo has been removed from React Native. It can now be installed and imported from 'react-native-netinfo' instead of 'react-native'. See https://github.com/react-native-community/react-native-netinfo This error is located at:     in Chat (created by Context.Consumer)     in ThemeProvider (created by Context.Consumer)     in ThemedChat (at ChannelScreen.js:31)     in RCTSafeAreaView (at SafeAreaView.js:55)     in SafeAreaView (at ChannelScreen.js:30)  
I am following the tutorial at https://getstream.io/chat/react-native-chat/tutorial/
This happens with latest expo sdk 36.

I think the problem is here - https://github.com/GetStream/stream-chat-react-native/blob/master/expo-package/src/index.js

{
import { NetInfo } from 'react-native';
}
@vishalnarkhede
Copy link
Contributor

Hey @familywiser1 , thanks for brining this to our attention. We have fixed this issue and made the sdk compatible with Expo36 as part of v0.5.0. Cheers :)

Please let us know if that works for you!!

@familywiser1
Copy link
Author

Yes, it works!!! thanks so much for fixing before holidays :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants