react-native-skia-responsive-text
Version:
A library providing a wrapper for the React Native Skia Text component, offering features like user-friendly text alignment, efficient multiline text management, and straightforward text truncation.
9 lines (7 loc) • 352 B
text/typescript
import { SharedValue } from 'react-native-reanimated';
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function isSharedValue<T>(value: any): value is SharedValue<T> {
'worklet';
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, no-underscore-dangle
return value?._isReanimatedSharedValue === true;
}