react-native-reanimated-player
Version:
A react-native video player that interacts like Youtube player, built upon Reanimted v2 & react-native-gesture-handle
24 lines (23 loc) • 510 B
JavaScript
import { useRef } from 'react';
import { Dimensions, Platform } from 'react-native';
export const normalize = size => size;
export const {
width,
height,
scale,
fontScale
} = Dimensions.get('window');
export const isIos = Platform.OS === 'ios';
export const bin = value => {
'worklet';
return value ? 1 : 0;
};
export const useRefs = () => {
const rippleLeft = useRef(null);
const rippleRight = useRef(null);
return {
rippleLeft,
rippleRight
};
};
//# sourceMappingURL=index.js.map