Skip to content
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

Refactor interval so hands tick over at proper time / upgrade expo #6

Merged
merged 8 commits into from
Sep 30, 2023

Conversation

gorbypark
Copy link
Contributor

@gorbypark gorbypark commented Sep 24, 2023

Motivation

The way the existing interval and state was setup, the minute and hour hands would tick over one minute / one hour after the component was created. I refactored the interval and state related to the current date to make sure the hands act properly.

I also upgrade the example project from expo SDK46 to SDK49 since 46 is depreciated and it's not possible to run in Expo Go.

This should fix my own issue.

Test Plan

None really.

Screenshoots

@mateoguzmana
Copy link
Owner

mateoguzmana commented Sep 25, 2023

Hey, @gorbypark! Thanks for spotting the bug and fixing it. Will try to test this and get it merged soon.

Nice work on the upgrade as well 🚀

Copy link
Owner

@mateoguzmana mateoguzmana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested this and it looks great, thanks for the contribution!

src/components/Clock.tsx Outdated Show resolved Hide resolved
@mateoguzmana mateoguzmana merged commit 7999382 into mateoguzmana:main Sep 30, 2023
1 check failed
@mateoguzmana
Copy link
Owner

Fixed #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants