UNPKG

@react-navigation/stack

Version:

Stack navigator component for iOS and Android with animated transitions and gestures

18 lines (17 loc) 380 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.throttle = throttle; function throttle(func, duration) { let timeout; return function (...args) { if (timeout == null) { func.apply(this, args); timeout = setTimeout(() => { timeout = undefined; }, duration); } }; } //# sourceMappingURL=throttle.js.map