UNPKG

react-native-reanimated

Version:

More powerful alternative to Animated library for React Native.

14 lines (13 loc) 551 B
'use strict'; import { ReanimatedError } from "../../../../../common/index.js"; 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 ReanimatedError(ERROR_MESSAGES.invalidTransitionBehavior(behavior)); } return behavior === 'allow-discrete'; } //# sourceMappingURL=settings.js.map