import { useState } from 'react'; import { Screen, View, Text } from '../index'; export const ScreenExamples = () => { const [screenDimensions, setScreenDimensions] = useState({ width: 0, height: 0 }); return ( Screen Examples {/* Background Examples */} Background Variants Each Screen should have a different background color Primary Surface Secondary Surface Tertiary Surface Inverse Surface {/* Padding Examples */} Padding Variants Different padding options for Screen content None No padding Small 8px Medium 16px Large 24px {/* Safe Area Examples */} Safe Area Safe area padding for mobile devices No Safe Area Standard Safe Area Mobile {/* Usage Examples */} Common Usage App Screen Layout Primary background with large padding Perfect for main app screens {/* onLayout Example */} onLayout Callback Track screen dimensions as they change { const { width, height } = event.nativeEvent.layout; setScreenDimensions({ width, height }); }} > Responsive Screen Width: {Math.round(screenDimensions.width)}px Height: {Math.round(screenDimensions.height)}px ); };