From d18bca1ccfef9654412dae9142618dd96fe2622d Mon Sep 17 00:00:00 2001 From: jinyaqiu Date: Tue, 22 Jul 2025 18:19:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=95=BF=E6=8C=89=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/download/app.tsx | 9 --------- components/download/qrCode.tsx | 23 ++--------------------- 2 files changed, 2 insertions(+), 30 deletions(-) diff --git a/components/download/app.tsx b/components/download/app.tsx index 40de423..aa9f586 100644 --- a/components/download/app.tsx +++ b/components/download/app.tsx @@ -40,15 +40,6 @@ export const AppDownload = (props: AppDownloadProps) => { - {/* */} {/* Description */} diff --git a/components/download/qrCode.tsx b/components/download/qrCode.tsx index 419fd8c..440ce64 100644 --- a/components/download/qrCode.tsx +++ b/components/download/qrCode.tsx @@ -1,7 +1,7 @@ import * as Haptics from 'expo-haptics'; import * as MediaLibrary from 'expo-media-library'; import React, { useRef } from 'react'; -import { Alert, StyleSheet, Text, TouchableOpacity, View } from 'react-native'; +import { Alert, StyleSheet, TouchableOpacity, View } from 'react-native'; import QRCode from 'react-native-qrcode-svg'; import { captureRef } from 'react-native-view-shot'; @@ -42,45 +42,26 @@ export default function QRDownloadScreen(prop: { url: string }) { return ( - 长按保存二维码 - {/* 可截图的容器 */} - - 👉 长按二维码即可保存 ); } const styles = StyleSheet.create({ container: { - flex: 1, + // flex: 1, justifyContent: 'center', alignItems: 'center', - padding: 20, - backgroundColor: '#f8f8f8', - }, - title: { - fontSize: 18, - fontWeight: 'bold', - marginBottom: 20, - textAlign: 'center', }, qrContainer: { padding: 16, backgroundColor: '#fff', borderRadius: 12, - borderWidth: 1, - borderColor: '#ddd', - shadowColor: '#000', - shadowOffset: { width: 0, height: 2 }, - shadowOpacity: 0.1, - shadowRadius: 4, - elevation: 3, }, tip: { marginTop: 20,