-
Notifications
You must be signed in to change notification settings - Fork 61
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
Fix crashes in React Native "navigator is not defined" #55
Conversation
This change lets people use Socket.io in React Native Related to an issue on socket.io-client repo: socketio/socket.io-client#945 All credit for this goes to @stevecass
@defunctzombie @rase- do yall need anything else from this PR to accept? Let me know 😄 |
We're using a hack around this with Feathers currently, and it's now busted in React Native v0.22. Willing to lend a hand any way that I can to push this along as I think this is the proper fix. Looks like the build error was just a timeout or something. |
Yeah seems tests actually pass, maybe a maintainer could have a look? |
@rauchg any chance you or anyone else at Automattic can give this a quick once over? Let us know if this feasible to get merged and what might need to change? It's shitty because this requires quite a few releases to other modules like engine-io up the chain but I'd love to see if we can get this merged so that I don't have to fork this or find another workaround for React Native. |
@ekryski this is very important. Thanks for pinging me. |
@rauchg no problemo! Thanks for the merge. 🎉 Mind pinging me when it goes out? |
Actually come to think of it. This really should only be a patch release. So it should be a fairly quick update. I'll keep my 👀 on it. |
When this will get published? |
We're making a release on Monday |
Thanks for the merge @rauchg 😄 👍 |
bump |
Any update on when the next release will be ready? 😄 |
@rauchg I know you guys are slammed. Anything I can help with to get the release out the door? Quite a few people are waiting on this to fix socket.io + RN. |
@rauchg Could you please publish the update to NPM. Just updated React-Native and ran into this issue with socket.io. |
@rauchg is a release coming soon? |
👍 |
Would love to see a release also! |
This appears to be released in |
@danawoodman where are you seeing that? Looking through the commit logs it's not looking like it. Did you spelunk the code after installing it? I haven't revisited it with the latest releases of RN yet. |
@ekryski I saw it here: 1.2.4...master |
Wait, ignore me, that is changes from master. Guess it's still pending after all. @rauchg is there an ETA for including this? |
@danawoodman @rauchg has been fairly active on github but not responded to any of the pings here since April. Is there someone else that we can reach to get this fix released? @rauchg if you're viewing this and able provide the ETA or any blockers please chime in and let us know, it would be greatly appreciated. If there is anything I can do, I'd be more than happy to. |
Bump |
@kapouer If you have some time and could help, that'd be great :) |
You know you can |
@kapouer I'm aware, though I prefer to only rely on that briefly. The issue has been steadily getting more activity with no response despite all the pings to @rauchg over the past two months . I completely understand how busy things can get, however this is a minor fix to release if I'm not mistaken. I and others here would be happy to assist with any work required to get the release out. |
@kapouer Does that help me when I'm trying to use the socketio packages? |
I've created a new issue to get some more visibility on this: #59 |
Is this coming? |
BUMP BUMP BUMP BUMP BUMP |
+1 |
+1 :) |
@darrachequesne forgive me if you're the wrong person to talk to but do you know when a new release will be pushed? |
@darrachequesne thanks for publishing this mate! 🍻 Now we don't have to include any weird hacks in React Native apps. 🎉 |
Holy $hit this finally got pushed! Thanks @darrachequesne, I guess you were the right one to nag! 😃 |
@ekryski does that mean we can use socket.io nicely with the feathers client in React Native now? :) (just saw this). |
@Mentioum should be able to. We've written a few RN apps with sockets and it's working just fine. 😄 |
Ensures that
navigator
is defined before testing user agent so that Socket.io does not fail in React Native.Tests are passing and I've also manually tested this and verified it works with React Native as expected.
Credit goes to @stevecass for originally reporting this over on Socket.io-client:
socketio/socket.io-client#945