import React, { useState } from 'react'; import { View, Text } from 'react-native'; import { QRCode, Button } from '@xrnjs/ui'; import Card from '_global/Card'; import styles from './style'; const LogoAndStyle = () => { const [qrColor, setQrColor] = useState('#000000'); const [bgColor, setBgColor] = useState('#ffffff'); const logoUrl = 'https://static.xtransfer.com/boss/static/favicon_adb49d0503860935.ico'; const colors = [ '#000000', '#1890ff', '#52c41a', '#faad14', '#f5222d', '#722ed1', '#13c2c2', '#eb2f96', ]; const bgColors = [ '#ffffff', '#f0f0f0', '#fff1f0', '#f6ffed', '#fff7e6', '#f9f0ff', '#e6fffb', '#fff0f6', ]; return ( 在二维码中心添加Logo图标 圆角Logo 方形Logo 不同的Logo尺寸和边距设置 小Logo 中Logo 大Logo 自定义二维码的前景色和背景色 前景色: {colors.map((color) => (