share modal

This commit is contained in:
2025-10-03 11:32:47 +02:00
parent d03cec164f
commit 8ea7f89c7b
12 changed files with 413 additions and 125 deletions
+12 -3
View File
@@ -1,13 +1,22 @@
import React from "react";
import React, { useCallback } from "react";
import { BlurView } from "expo-blur";
import { Pressable } from "react-native";
import { Entypo } from "@expo/vector-icons";
import { openShareSheet } from "../../utils/shareSheet";
export default function ShareBtn({ style, onPress = null }) {
const handlePress = useCallback(() => {
if (typeof onPress === "function") {
onPress();
return;
}
openShareSheet();
}, [onPress]);
return (
<Pressable
onPress={onPress}
disabled={!onPress}
onPress={handlePress}
style={{
...style,
}}
+12 -3
View File
@@ -1,15 +1,24 @@
import React from "react";
import React, { useCallback } from "react";
import { BlurView } from "expo-blur";
import { Pressable, Text } from "react-native";
import { Palette } from "../../styles";
import { FONT_FAMILY } from "../../styles/Fonts";
import { Entypo } from "@expo/vector-icons";
import { openShareSheet } from "../../utils/shareSheet";
export default function ShareBtn({ style, onPress = null }) {
const handlePress = useCallback(() => {
if (typeof onPress === "function") {
onPress();
return;
}
openShareSheet();
}, [onPress]);
return (
<Pressable
onPress={onPress}
disabled={!onPress}
onPress={handlePress}
style={{
...style,
}}