-
Notifications
You must be signed in to change notification settings - Fork 34
/
Share.js
41 lines (37 loc) · 865 Bytes
/
Share.js
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
import { Image } from 'expo-image';
import React, { useEffect } from 'react';
import { View, StyleSheet } from 'react-native';
import { ShareMenuReactView } from 'react-native-share-menu';
import assets from '@assets';
const Share = () => {
useEffect(() => {
ShareMenuReactView.data().then(({ mimeType, data }) => {
ShareMenuReactView.continueInApp();
});
}, []);
return (
<View style={styles.container}>
<Image
contentFit="cover"
style={styles.logo}
source={assets.LOGO_HORIZONTAL}
/>
</View>
);
};
const styles = StyleSheet.create({
container: {
height: '100%',
width: '100%',
alignContent: 'center',
alignItems: 'center',
alignSelf: 'center',
justifyContent: 'center',
},
logo: {
height: 85,
width: 230,
marginTop: 10,
},
});
export default Share;