import { useExpoTheme } from 'expo-dev-client-components'; import * as React from 'react'; import { Share, StyleSheet, TouchableOpacity } from 'react-native'; import Config from '../api/Config'; import * as UrlUtils from '../utils/UrlUtils'; import * as Icons from './Icons'; export default function ShareProjectButton( props: Partial> & { fullName: string; } ) { const theme = useExpoTheme(); const onPress = React.useCallback(() => { const url = `exp://${Config.api.host}/${props.fullName}`; const message = UrlUtils.normalizeUrl(url); Share.share({ title: url, message, url: message, }); }, [props.fullName]); return ( ); } const styles = StyleSheet.create({ container: { flexDirection: 'row', alignItems: 'center', justifyContent: 'center', paddingRight: 15, }, });