import type { CommonProps } from 'rntwsc/tw/components/lib/common-props' type Style = { transitionProperty?: unknown animationName?: unknown } type Props = Pick & { style?: Style } // style should be flatten already in create class name component export const isReanimated = (props: any) => { const p = props as Props if (p.reanimatedStyle) { return true } if (!p.style) { return false } return 'transitionProperty' in p.style || 'animationName' in p.style }