ScrollView#contentContainerStyle

contentContainerStyle StyleSheetPropType(ViewStylePropTypes)

These styles will be applied to the scroll view content container which wraps all of the child views. Example:

return ( <ScrollView contentContainerStyle={styles.contentContainer}> </ScrollView> ); ... const styles = StyleSheet.create({ contentContainer: { paddingVertical: 20 } });

doc_React_Native
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.