withSafeArea Function

HOC that injects SafeAreaInsets.

withSafeArea<P extends InjectedWithSafeAreaProps, C>(Component: (props: P) => | ReactElement<any, string | JSXElementConstructor<any>> & C & (props: P) => Component<P, any, any> & C): undefined

Parameter Type Description
Component (props: P) => | ReactElement<any, string | JSXElementConstructor<any>> & C & (props: P) => Component<P, any, any> & C  

Defined in

Last Updated: 12 June, 2024