UNPKG

react-native-reanimated

Version:

More powerful alternative to Animated library for React Native.

13 lines (12 loc) 493 B
'use strict'; import { VALID_TRANSITION_BEHAVIORS } from "./constants.js"; export const ERROR_MESSAGES = { invalidTransitionBehavior: behavior => `Invalid transition behavior "${behavior}".` }; export function normalizeTransitionBehavior(behavior = 'normal') { if (!VALID_TRANSITION_BEHAVIORS.includes(behavior)) { throw new Error(`[Reanimated] ${ERROR_MESSAGES.invalidTransitionBehavior(behavior)}`); } return behavior === 'allow-discrete'; } //# sourceMappingURL=settings.js.map