web-ridge / react-native-paper-dates

Smooth and fast cross platform Material Design date and time picker for React Native Paper
https://www.reactnativepaperdates.com
MIT License
658 stars 170 forks source link

A require cycle warning raised when debug with Android emulator #72

Closed heyouxian closed 2 years ago

heyouxian commented 3 years ago

Error description: Require cycle: node_modules\react-native-paper-dates\src\Time\AnalogClock.tsx -> node_modules\react-native-paper-dates\src\Time\AnalogClockHours.tsx -> node_modules\react-native-paper-dates\src\Time\AnalogClock.tsx

I used latest 0.4.5 version and checked source code, the issue really exists in typescript source files.

RichardLindhout commented 3 years ago

This is not an error but a warning right?

hariks789 commented 3 years ago

This is caused by the export const circleSize = 215 in AnalogClock.tsx file Moving the export to timeUtils.ts will fix this

hariks789 commented 3 years ago

74 will fix this