Closed exploIF closed 3 months ago
As we discussed offline, this issue is more generic than just the SafeAreaContext. We need to modify the implementation to cancel the animation and jump directly to the final position. A similar approach is already in place for Layout Animation for Fabric. Solutions:
layout
to component like here - https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/layout-transitions
Summary
Added warning log when animated component is rendered directly inside
SafeAreaView
fromreact-native
or fromreact-native-safe-area-context
. This should address maintainer issue hereTest plan
EmptyExample.tsx
paste the codeconst animation = FadeIn.delay(1000).duration(2000);
export default function EmptyExample() { return (
); } const styles = StyleSheet.create({ greyBox: { backgroundColor: 'grey', height: 100, width: '100%', }, redAnimatedBox: { backgroundColor: 'red', height: 100, width: '100%', }, });
Animated components shouldn't be rendered directly inside , consider wrapping your content with additional