-
Notifications
You must be signed in to change notification settings - Fork 4
/
App.tsx
44 lines (41 loc) · 1.11 KB
/
App.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
import * as React from 'react';
import { BlurView } from '@candlefinance/blur-view';
import { Dimensions, Image, ScrollView, StyleSheet } from 'react-native';
// @ts-ignore
import MyImage from '../images/deepmind.jpg';
// @ts-ignore
import MyImage2 from '../images/deepmind2.jpg';
export default function App() {
return (
<>
<ScrollView pagingEnabled>
<Image source={MyImage} style={styles.image} />
<Image source={MyImage2} style={styles.image} />
</ScrollView>
<BlurView
colorTintOpacity={0.5}
blurTintColor="#ffffff"
blurRadius={90}
style={styles.top}
/>
<BlurView blurRadius={5} style={styles.bottom} />
</>
);
}
const styles = StyleSheet.create({
image: {
width: Dimensions.get('window').width,
height: Dimensions.get('window').height,
},
top: {
width: Dimensions.get('window').width,
height: Dimensions.get('window').height * 0.2,
position: 'absolute',
},
bottom: {
width: Dimensions.get('window').width,
height: Dimensions.get('window').height * 0.2,
position: 'absolute',
bottom: 0,
},
});