Skip to content

Instantly share code, notes, and snippets.

View zhenguet's full-sized avatar
🧐
hmmm...

Zheng UET zhenguet

🧐
hmmm...
  • HaiPhong, VietNam
View GitHub Profile
@zhenguet
zhenguet / BarcodeMask.tsx
Created August 3, 2023 08:44 — forked from nartc/BarcodeMask.tsx
ReactNative Camera Barcode Mask (from react-native-barcode-mask) rewritten using Hooks and Reanimated
import React, { FC, memo } from 'react';
import { LayoutChangeEvent, StyleSheet, View, ViewStyle } from 'react-native';
import Animated, { Easing } from 'react-native-reanimated';
const { Value, Clock, block, cond, set, startClock, timing, eq } = Animated;
type DimensionUnit = string | number;
type EdgePosition = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
interface Props {