mirror of
				https://github.com/tooot-app/app
				synced 2025-06-05 22:19:13 +02:00 
			
		
		
		
	Remove share react
This commit is contained in:
		| @@ -1,4 +0,0 @@ | ||||
| import { AppRegistry } from 'react-native' | ||||
| import ShareExtension from './src/ShareExtension' | ||||
|  | ||||
| AppRegistry.registerComponent('ShareMenuModuleComponent', () => ShareExtension) | ||||
| @@ -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 | ||||
		Reference in New Issue
	
	Block a user