mirror of
https://github.com/MrLowPr/overdrive.git
synced 2026-10-21 02:01:44 +02:00
18 lines
681 B
JavaScript
18 lines
681 B
JavaScript
// Copyright (C) 2026 half144 and PS5 React contributors
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
// Additional attribution term: see LICENSE-ATTRIBUTION.
|
|
// Motion-style animation over Embedded React's engine-driven Animated; see docs/ANIMATION.md.
|
|
import {Image, Text, View} from 'embedded-react';
|
|
import {createMotion} from './motion.js';
|
|
|
|
export {AnimatePresence} from './presence.js';
|
|
export {transitions} from './transitions.js';
|
|
|
|
export const motion = {
|
|
View: createMotion(View),
|
|
Text: createMotion(Text, {wrapOpacity: true}),
|
|
Image: createMotion(Image, {wrapOpacity: true}),
|
|
/** @type {typeof createMotion} */
|
|
create: Component => createMotion(Component),
|
|
};
|