pawanbenjamin / zen-g-2024

0 stars 0 forks source link

Instantiation of Animated start() callback logic for state update #7

Closed samryderE closed 3 months ago

samryderE commented 3 months ago

setTimeout calls were completely removed in this PR in favor of running the same logic in Animated start() callbacks for updating all the necessary state and especially the useIsShake hook's readiness for registering a mobile shake. The useIsShake hook was also moved to the top level App component for a single invocation to remove redundant invocations within multiple components performing the same affect.