-
Notifications
You must be signed in to change notification settings - Fork 292
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
liveblocks client - fast reconnect with React Native #261
Comments
Fast reconnectCurrently With React NativeUnfortunately, React Native doesn't offer an That means that our client would rely on an external library, and which would the current require()We try to enhance Our thoughtsWe were confident at the beginning of the React Native support. But when we faced the We need to consider other scenarios with React Native too (e.g. App focused). During our test the 3rd party library The code is a bit more complicated. That's why we need to invest more time to solve this problem and even think if we need a dedicated |
what's the status of the RN integration? |
Hi @alidcast, thanks for reaching out and asking. Currently, we don't have any plans to support an official React Native integration, so we're not working on it. However, have you tried using our client package directly, following the instructions from our documentation? Curious to hear if that documentation fell short in any way for you. If so, please let us know, so we can provide better support for it. Thanks! |
React Native developers are facing an issue with the liveblocks client. The window javascript object doesn't exist in the RN ecosystem. So when running the RN application there is an error in the client package:
TypeError: undefined is not a function (near '...window.addEventListener...')
The current workaround is:
window.addEventListener = () => {};
The goal of this event hook is to reconnect as soon as possible.
The text was updated successfully, but these errors were encountered: