seniv / react-native-notifier

Fast and simple in-app notifications for React Native
MIT License
1.05k stars 60 forks source link

Support opacity fade in/out animation #54

Closed angel-rs closed 2 years ago

angel-rs commented 2 years ago

I'd like to apply an opacity style when the notification enters/leaves the screen. Thought this would be a nice addition to this library - some guidance on best approach for this would be appreciated.

From what I can tell this would require injecting the animated value, to be able to interpolate it from the component & create this opacity style effect.

I'm thinking in adding some sort of opt-in prop. e.g injectAnimatedValue & if its true, it would inject into the component a animatedValue prop, passing down translateY as the value.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.