import React from 'react';
import { View, Text, Button, StyleSheet } from 'react-native';
export default function NativeUIExplanation() {
return (
<View style={styles.container}>
<Text style={styles.header}>Why Core Components?</Text>
<Text style={styles.paragraph}>
React Native uses core components like View, Text, and Image to create native UI.
This means your app looks and feels like a real native app.
</Text>
<Button title="OK" onPress={() => { /* Placeholder for close action */ }} />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
padding: 20,
justifyContent: 'center',
backgroundColor: '#fff'
},
header: {
fontSize: 24,
fontWeight: 'bold',
marginBottom: 20,
textAlign: 'center'
},
paragraph: {
fontSize: 16,
marginBottom: 40,
textAlign: 'center'
}
});This screen uses React Native core components View, Text, and Button to build a native user interface.
The View acts as a container with padding and centers content vertically.
The header text uses a larger, bold font to stand out.
The paragraph explains that React Native core components map directly to native UI elements, so the app looks and feels like a real native app, not a web page.
The Button is a native button component with a simple placeholder action.