react-live-clock icon indicating copy to clipboard operation
react-live-clock copied to clipboard

App Crash with New React Native Architecture

Open nielsq opened this issue 1 year ago • 4 comments

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!

nielsq avatar Nov 26 '24 15:11 nielsq

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

anthony0030 avatar Dec 02 '24 07:12 anthony0030

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 avatar Mar 10 '25 17:03 Emsaicc

@Emsaicc thanks for the feedback. I am sorry for your situation. do you have any code that I can implement to improve this project?

anthony0030 avatar Mar 14 '25 13:03 anthony0030

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

ReeceKenney avatar May 06 '25 15:05 ReeceKenney