import React, { ReactNode } from 'react' import Animated from 'react-native-reanimated' import { LongPressGestureHandler } from 'react-native-gesture-handler' import { Platform, View } from 'react-native' import type { NotificationState } from '../hooks/useNotificationsStates' import type { AnimationAPI } from '../hooks/useAnimationAPI' import { styles } from '../utils/styles' import { Constants } from '../config' type Props = { children: ReactNode state: Pick animationAPI: Pick< AnimationAPI, 'animatedStyles' | 'cancelTransitionAnimation' | 'revokeTransitionAnimation' > } export const AnimationRenderer = ({ children, animationAPI, state }: Props) => { return ( {state.notificationEvent && ( {children} )} ) }