Skip to content

Commit

Permalink
💫 Update: Ex - AnimatableCustomFilterViewTest01Screen
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Dec 30, 2024
1 parent 9f08828 commit f029762
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion example/src/examples/AnimatableCustomFilterViewTest01Screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as React from 'react';
import { StyleSheet, View, Animated, Easing, Dimensions } from 'react-native';

import { AnimatableCustomFilterView, IdentityBackgroundFilterConfigListPreset, IdentityForegroundFilterConfigListPreset, type LayerFilterConfig } from 'react-native-ios-visual-effect-view';
import { CounterDisplay } from '../components/CounterDisplay';
const WINDOW_SIZE = Dimensions.get('window');

// 1 = black, 0 = transparent
Expand Down Expand Up @@ -97,7 +98,16 @@ export function AnimatableCustomFilterViewTest01Screen() {
}
]
}}
/>
animationConfig={{
mode: 'presetCurve',
duration: 1,
curve: 'linear',
}}
>
<View style={styles.effectContent}>
<CounterDisplay/>
</View>
</AnimatableCustomFilterView>
</View>
);
}
Expand All @@ -119,4 +129,9 @@ const styles = StyleSheet.create({
left: 0,
right: 0,
},
effectContent: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
},
});

0 comments on commit f029762

Please sign in to comment.