-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBlurViewBasicUsage01.tsx
48 lines (43 loc) · 992 Bytes
/
BlurViewBasicUsage01.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// import * as React from 'react';
import { StyleSheet, View, Text } from 'react-native';
import { BlurView } from 'react-native-ios-visual-effect-view';
export function BlurViewBasicUsage01() {
return (
<View style={styles.container}>
<Text style={styles.label}>
{'❤️\n🧡\n💛\n💚\n💙\n💜\n💖\n💃\n✨'}
</Text>
<BlurView
style={styles.effectOverlay}
blurMode={{
mode: 'blurEffectSystem',
blurEffectStyle: 'prominent',
}}
animationConfig={{
duration: 1,
mode: 'presetCurve',
curve: 'easeOut',
}}
animationDelay={1}
/>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
backgroundColor: 'white',
},
label: {
fontSize: 72,
},
effectOverlay: {
position: 'absolute',
top: 0,
bottom: 0,
left: 0,
right: 0,
},
});