Application Android et IOS pour l'amicale des élèves
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

withSafeArea.js 390B

1234567891011121314
  1. import React from 'react';
  2. import {useSafeArea} from 'react-native-safe-area-context';
  3. export const withSafeArea = (Component: any) => {
  4. return React.forwardRef((props: any, ref: any) => {
  5. let safeArea = useSafeArea();
  6. // safeArea.bottom = 0;
  7. return <Component
  8. safeArea={safeArea}
  9. ref={ref}
  10. {...props}
  11. />;
  12. });
  13. };