import type { ComponentType } from 'react'; import { View, type ScrollViewProps } from 'react-native'; import { navigationRailContentStyles } from './utils'; export type Props = ScrollViewProps & { /** * ContainerComponent prop allows to replace the default container used in DrawerContent - ScrollView * */ ContainerComponent?: ComponentType; }; const NavigationRailContent = ({ style, children, ContainerComponent, ...rest }: Props) => { const Container = ContainerComponent || View; return ( {children} ); }; NavigationRailContent.displayName = 'NavigationRail_Content'; export default NavigationRailContent;