-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
40 lines (37 loc) · 1.17 KB
/
Copy pathApp.tsx
File metadata and controls
40 lines (37 loc) · 1.17 KB
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
import React from 'react';
import { BlurView } from '@sbaiahmed1/react-native-blur';
import { Image, View } from 'react-native';
import { BlurView as DanielBlurView } from '@danielsaraldi/react-native-blur-view';
import { NitroImage } from 'react-native-nitro-image';
function App() {
return (
<View style={{ flex: 1, justifyContent: 'space-evenly' }}>
<NitroImage
resizeMode={'cover'}
image={{ url: 'https://picsum.photos/id/3/400' }}
style={{ height: 400 }}
/>
{/*<View>*/}
{/* <Image height={400} source={{ uri: 'https://picsum.photos/id/3/400' }} />*/}
{/* <BlurView*/}
{/* blurType="dark"*/}
{/* blurAmount={60}*/}
{/* style={{ position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 }}*/}
{/* />*/}
{/*</View>*/}
<View>
<Image
height={400}
source={{ uri: 'https://picsum.photos/id/3/400' }}
/>
<DanielBlurView
targetId={'some-id'}
type="dark"
radius={20}
style={{ position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 }}
/>
</View>
</View>
);
}
export default App;