App Crash with New React Native Architecture
Hi,
Thank you for creating and maintaining this great library! I’ve encountered an issue when using the <Clock> component with the new React Native architecture.
The app works fine in development mode, but it crashes completely when running a built version. I suspect the issue might be related to the moment package, as I’ve experienced similar crashes with it in other contexts, and I noticed your library uses it as well.
Would it be possible to look into this or provide guidance on how to resolve this?
Thanks in advance for your help!
Good morning @nielsq, Thank you for your kind words. I have never used react native, so I don't know how to debug this problem.
If you use react moment on the page do you have the same problem? Do you have react moment as a dependency or a dev dependency?
Please provide any error message or screenshot to be able to debug this problem.
Thank you for your patience, Anthony
Hi,
Thank you for creating and maintaining this great library! I’ve encountered an issue when using the component with the new React Native architecture.
The app works fine in development mode, but it crashes completely when running a built version. I suspect the issue might be related to the moment package, as I’ve experienced similar crashes with it in other contexts, and I noticed your library uses it as well.
Would it be possible to look into this or provide guidance on how to resolve this?
Thanks in advance for your help!
I wish I read this sooner, spent 2 days debugging and this was the cause lol
@Emsaicc thanks for the feedback. I am sorry for your situation. do you have any code that I can implement to improve this project?
I don't have time to look into the fix for this at the moment, but just wanted to come here and share that I am also seeing this issue. My app works fine in development mode but crashes when I run a build version.
Removing the use of 'react-live-clock' fixed the crash
I don't have any source code but to repro it, you could probably just create a barebones expo react app which uses the package and then use eas build to build it in preview:
eas build --profile preview --platform android