-
-
Notifications
You must be signed in to change notification settings - Fork 606
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
Add support for react-native #657
Comments
Please mention what does exactly not work for you, so others can help you if someone encountered the same problem. |
there's no reason why js-sdk shouldn't work on react-native. |
thanks @ara4n, it works for me on react native with expo, me and @Sekhmet were working on this and we had to install the following libraries as dev dependancies on our end
Also my console.log and emulator is filled with a bunch of these: But you guys might already know this :) |
@moeinrahimi looks like you're missing some dependancies, try installing the ones I had above... also are you using vanilla React Native? or React Native with Expo? |
try using expo @moeinrahimi, https://expo.io/, and see if it works with that, other than that, I would try to clear your node modules and do a fresh |
@moeinrahimi You are going to need to polyfill it.. see solution here - expo/browser-polyfill#10 |
@moeinrahimi It could help others if you'd take some time to list the installed polyfills. Thank you. |
|
I wrote an article about how to fix the earlier "Unable to resolve module 'events'" issue. However I'm running into a new problem - when I try to run "unhomoglyph" is a library that matrix is specifically using in their project. I have posted issues about this on both matrix github and unhomoglyph github (Found here) and typically people have not been willing to look into it. I'm starting to lose hope that the matrix-js-sdk can work with React Native after all. Has anybody else run into this? @moeinrahimi , how far did you get with getting the sdk to work with react native? |
I was thinking about using the native android and iOS matrix client SDKs and writing a wrapper for react-native. |
any update? |
|
This polyfill almost works. Now I get an error regarding webRTC not being supported by the browser. Any ideas? |
Is supporting RN still on the roadmap? Today, use 23.1.1, importing
|
Sorry, where was it ever stated that it was? This library is intended for Web & Node. It'll work in many more places than that with a bit of extra work using Node polyfills. |
Sorry for the confusion, I'm new here, saw comments like #657 (comment) and jumped to conclusions. Thanks for clearing up that React Native is not officially supported. |
Does it have React Native support now? |
Currently, it's probably possible to get most of js-sdk working in React Native with sufficient babel/polyfill magic, but: |
I want to use it with react-native,but i cant't find the way which to do this.please help me. thank you.
The text was updated successfully, but these errors were encountered: