import A from 'react-native-reanimated' ; type Proc = ( ... params : A . Adaptable < any > [ ] ) => A . Node < number > ; export function maybeProc < T extends Proc > ( animationRunner ) { if ( typeof A . proc === 'function' ) { return A . proc ( animationRunner ) ; } return animationRunner ; }