Build: Platform Consistent Style Demo
This screen shows how using StyleSheet in React Native helps create UI that looks consistent on both iOS and Android devices.
Target UI
------------------------- | Platform Consistent UI | |-----------------------| | Text styled with | | StyleSheet looks the | | same on iOS and Android| | | | [Press Me] (button) | -------------------------
Use StyleSheet.create to define styles
Apply styles to Text and Button components
Show a button with consistent padding and color
Use platform-specific font weight if needed
Ensure the UI looks balanced on both iOS and Android