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: 29 November, 2022