react-native-scheduled-view
Version:
Show and hide React Native components based on time schedules
27 lines • 806 B
TypeScript
import type { TimeConfig } from './types';
declare class TimeRangeManager {
private id;
private timeCheckInterval;
private firstCheckTimeout;
private readonly timeRanges;
private readonly listeners;
registerTime(times: TimeConfig[], onShow: () => void, onHide: () => void): {
remove: () => void;
};
private dailyToSpan;
private updateTimes;
private updateListeners;
private getUpdateParams;
private update;
private stopCheckInterval;
private startCheckInterval;
private removeTime;
private createSpanTime;
private getToday;
private get timeKeys();
private get listenerKeys();
}
export { TimeRangeManager };
declare const _default: TimeRangeManager;
export default _default;
//# sourceMappingURL=time-range-manager.d.ts.map