| 12345678910111213141516171819202122232425262728293031323334353637 |
- import { View, Text, ScrollView, Pressable, Image, useWindowDimensions } from 'react-native';
- import React, { useContext } from 'react';
- import { SafeAreaView } from 'react-native-safe-area-context';
- import { router } from 'expo-router';
- import { CrossLogoSvg, RightArrowIconSvg } from '../global/SVG';
- const VipQrPageComponent = () => {
- const { width } = useWindowDimensions();
- const qrCodeSize = width * 0.8; // 80% of screen width
- return (
- <SafeAreaView className="flex-1 bg-white" edges={['top', 'right', 'left']}>
- <ScrollView className="flex-1 mx-[5%]" showsVerticalScrollIndicator={false}>
- <View style={{ marginTop: 25 }}>
- <Pressable
- onPress={() => {
- router.replace('/mainPage');
- }}
- >
- <CrossLogoSvg />
- </Pressable>
- <Text style={{ fontSize: 45, marginVertical: 25 }}>專屬會員二維碼</Text>
- </View>
- <View className="items-center">
- <Text className="text-lg self-start mb-4">掃描以下二維碼即可進入專屬VIP區域。</Text>
- <Image
- source={require('../../assets/vipqrcode.png')}
- className=""
- style={{ width: qrCodeSize, height: qrCodeSize }}
- />
- </View>
- </ScrollView>
- </SafeAreaView>
- );
- };
- export default VipQrPageComponent;
|