-
Notifications
You must be signed in to change notification settings - Fork 41
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
Customizable Loading Screen for Chatwoot React Native Widget #46
Comments
any work on this? |
WorkaroundI made some minor modifications to an internal fork to get this to work. The Chatwoot RN widget is just a web-view wrapper, so the fix is relatively simple. PreviewScreen.Recording.2024-11-15.at.8.12.59.AM.movSteps
Here's the full gist - https://gist.github.com/hemantasapkota/2450abfe4641915dddebd1a74400dc65 |
Hey @hemantasapkota Does the widget properly load after building an apk, installing it on a device? |
@mubarekmuhiyie - yes it does. you can try for yourself by installing the app from the store - https://play.google.com/store/apps/details?id=com.yolmo.learntocode android preview below screen-20250216-202122.mp4 |
@hemantasapkota After building the apk all the components that import the widget have been crushing with a blank white screen, and I'm suspecting it needs some form of lazy loading to import the component once all its dependencies are loaded. Will adding ur loading state fix this issue as well? I am using Expo Go and it works fine locally but once its built into an apk it crashes all screens the widget is imported to. Below is the error from abd logcat Thank you for your help! |
@mubarekmuhiyie smells like an imports problem! Check where the
|
@hemantasapkota I have not imported ErrorBoundary in any of my components.. Did you use expo go in the project? |
@mubarekmuhiyie - Please raise the issue on a new Github thread. |
@hemantasapkota I have already did. But wanted to check the envt ur using is it expo go with the latest SDK? |
@mubarekmuhiyie nope - I just use vanilla React Native out of the box. |
@hemantasapkota Nice work. It would be great if you can create a PR with the main repo. We will definitely merge this. |
Overview
When initializing the Chatwoot React Native widget, users see a flash of a white background before the widget fully loads. This creates a poor user experience, as there’s no indication that the widget is in the process of loading.
Evidence
In my app, Learn to Code with Yolmo®, this issue is noticeable.
white.background.mp4
Proposed Solution
To improve the user experience, I propose replacing the white flash with customizable loading options, such as a spinner, message, or background. This would provide a smoother transition and better alignment with app branding.
Customizable Placeholder: Allow developers to define a custom placeholder component that displays while the widget is loading.
Pre-Configured Loading Screen Options: Provide a set of pre-configured loading options, such as spinners, progress bars, or background images, which can be toggled via props.
The text was updated successfully, but these errors were encountered: