import { ContentPadding } from "@/constants/theme"; import { forwardRef } from "react"; import { Platform, ScrollView, ScrollViewProps, StyleSheet, } from "react-native"; interface ContentProps extends ScrollViewProps { children?: React.ReactNode; } const Content = forwardRef( ({ children, style, ...rest }, ref) => { return ( <> {Platform.OS === "web" ? ( {children} ) : ( {children} )} ); } ); Content.displayName = "Content"; const styles = StyleSheet.create({ content: { paddingHorizontal: ContentPadding, paddingTop: ContentPadding + 30, paddingBottom: ContentPadding + 20, }, }); export default Content;