index.tsx 374 B

12345678910111213
  1. import React, { FC, ReactNode } from 'react';
  2. import { SafeAreaView, StyleProp, ViewStyle } from 'react-native';
  3. import { styles } from './styles';
  4. type Props = {
  5. children: ReactNode;
  6. style?: StyleProp<ViewStyle>;
  7. };
  8. export const PageWrapper: FC<Props> = ({ children, style }) => {
  9. return <SafeAreaView style={[styles.wrapper, style]}>{children}</SafeAreaView>;
  10. };