Skip to main content

Installation

npx expo install @0610studio/expo-holographic-card @shopify/react-native-skia react-native-reanimated react-native-gesture-handler expo-sensors

App Root Setup

AnimatedCard uses GestureDetector, so wrap your app root with GestureHandlerRootView.

import { GestureHandlerRootView } from 'react-native-gesture-handler';

export default function App() {
return (
<GestureHandlerRootView style={{ flex: 1 }}>
{/* app */}
</GestureHandlerRootView>
);
}

Reanimated Babel Setup

If your project needs Reanimated's Babel plugin, add it to babel.config.js.

module.exports = function (api) {
api.cache(true);

return {
presets: ['babel-preset-expo'],
plugins: ['react-native-reanimated/plugin'],
};
};

Peer Dependencies

The package expects these libraries as peer dependencies.

PackageRole
@shopify/react-native-skiaCanvas-based lighting
react-native-reanimatedTilt and flip animations
react-native-gesture-handlerDrag and swipe gestures
expo-sensorsDeviceMotion sensor mode