Remove share react

This commit is contained in:
Zhiyuan Zheng 2022-05-05 01:32:32 +02:00
parent a73356c7e6
commit b8abd8db8a
2 changed files with 0 additions and 47 deletions

View File

@ -1,4 +0,0 @@
import { AppRegistry } from 'react-native'
import ShareExtension from './src/ShareExtension'
AppRegistry.registerComponent('ShareMenuModuleComponent', () => ShareExtension)

View File

@ -1,43 +0,0 @@
import { useEffect } from 'react'
import { Appearance, Pressable } from 'react-native'
import { Circle } from 'react-native-animated-spinkit'
import { ShareMenuReactView } from 'react-native-share-menu'
// mimeType
// text/plain - text only, website URL, video?!
// image/jpeg - image
// video/mp4 - video
const colors = {
primary: {
light: 'rgb(18, 18, 18)',
dark: 'rgb(180, 180, 180)'
},
background: {
light: 'rgb(250, 250, 250)',
dark: 'rgb(18, 18, 18)'
}
}
const ShareExtension = () => {
useEffect(() => {
ShareMenuReactView.continueInApp()
}, [])
const theme = Appearance.getColorScheme() || 'light'
return (
<Pressable
style={{
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: colors.background[theme]
}}
>
<Circle size={18} color={colors.primary[theme]} />
</Pressable>
)
}
export default ShareExtension