<ScrollView style={styles.page} contentContainerStyle={{ flexGrow: 1 }}> <View style={styles.paragraph}> {/* content */} </View> </ScrollView>
view
View
is a container that supports layout with flexbox, style, some touch handling, and accessibility controls.
View maps directly to the native view equivalent on whatever platform React Native is running on, whether that is a UIView
, <div>
, android.view
, etc.
import { Text, View, StyleSheet } from 'react-native'; export default function AboutScreen() { return ( <View style={styles.container}> <Text style={styles.text}>About screen</Text> </View> ); }