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.
setTimeout
calls were completely removed in this PR in favor of running the same logic inAnimated start()
callbacks for updating all the necessary state and especially theuseIsShake
hook's readiness for registering a mobile shake. TheuseIsShake
hook was also moved to the top levelApp
component for a single invocation to remove redundant invocations within multiple components performing the same affect.