withSafeArea Function
Deprecated in 3.6. Use SafeAreaContext instead.
HOC that injects SafeAreaInsets.
withSafeArea<P extends InjectedWithSafeAreaProps, C>(Component: (props: P) => | ReactElement<any, any> & C & (props: P) => Component<any, any, any> & C): undefined
Parameter | Type | Description |
---|---|---|
Component | (props: P) => | ReactElement<any, any> & C & (props: P) => Component<any, any, any> & C |
Defined in
Last Updated: 30 November, 2023