UNPKG

react-native-screen-transitions

Version:
30 lines (29 loc) 988 B
"use strict"; import { ScreenLifecycleController } from "../components/controllers/screen-lifecycle"; import { RootTransitionAware } from "../components/root-transition-aware"; import { ScreenGestureProvider } from "../providers/gestures"; import { KeysProvider } from "../providers/keys"; import { TransitionStylesProvider } from "../providers/transition-styles"; import { jsx as _jsx } from "react/jsx-runtime"; export function ScreenTransitionProvider({ previous, current, next, children }) { return /*#__PURE__*/_jsx(KeysProvider, { previous: previous, current: current, next: next, children: /*#__PURE__*/_jsx(ScreenGestureProvider, { children: /*#__PURE__*/_jsx(ScreenLifecycleController, { children: /*#__PURE__*/_jsx(TransitionStylesProvider, { children: /*#__PURE__*/_jsx(RootTransitionAware, { children: children }) }) }) }) }); } //# sourceMappingURL=screen-transition-provider.js.map