UNPKG

react-native-zoom-toolkit

Version:

Smoothly zoom any image, video or component you want!

17 lines (16 loc) 479 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.useSizeVector = void 0; var _reactNativeReanimated = require("react-native-reanimated"); const useSizeVector = (x, y) => { const first = (0, _reactNativeReanimated.useSharedValue)(x); const second = (0, _reactNativeReanimated.useSharedValue)(y ?? x); return { width: first, height: second }; }; exports.useSizeVector = useSizeVector; //# sourceMappingURL=useSizeVector.js.map