import React from 'react'; import { ScrollView, View, Text, Platform } from 'react-native'; import Card from '_global/Card'; import { Layout, Space } from '@xrnjs/ui'; import { styles } from './style'; export default () => { return ( 底部安全区域 通过 bottomSafeArea 属性控制底部安全区域的处理方式 无底部安全区域 bottomSafeArea: false 默认底部安全区域 bottomSafeArea: true {Platform.OS === 'ios' ? ' (SafeAreaView)' : ' (30px)'} 自定义安全区域 bottomSafeArea: 20 较大安全区域 bottomSafeArea: 50 平台差异说明 • iOS: bottomSafeArea=true 时使用 SafeAreaView{'\n'}• Android: bottomSafeArea=true 时使用 30px 固定高度{'\n'}• Web: 不处理底部安全区域{'\n'}• 数字值: 所有平台使用指定高度 ); };