@buoy-gg/clock
v7.0.66
Published
Clock override for React Native: travel to any date, freeze or speed up time, and jump ahead while firing due timers. Test expirations, countdowns and renewals without touching the device clock.
Maintainers
Readme
@buoy-gg/clock
Move your React Native app's clock to any date, freeze it or speed it up, and jump ahead while the timers that come due still run. Test expiring offers, countdowns and renewals without changing the device's time, and check that your app refreshes its sign-in token before expiry and after a 401.
Clock guide · buoy.gg · All tools
Install
npm install @buoy-gg/core @buoy-gg/clockThe tool appears in FloatingDevTools on its own. If your app reads the clock while its modules load, import the package first in your entry file so a saved override applies before they run:
import "@buoy-gg/clock";Jumping ahead, typing a date and the token row are free. Freeze, Speed, keeping the time after a restart and the two token tests need Buoy Pro.
The Clock guide lists which time APIs follow the override and which stay on real time. New to Buoy? Start with the Quick start.
Part of Buoy, developer tools that live inside your app. Proprietary software. © Buoy LLC. Terms
