Files
create-better-t-stack/apps/cli/templates/frontend/native/unistyles/components/container.tsx

16 lines
453 B
TypeScript

import React from "react";
import { SafeAreaView } from "react-native";
import { StyleSheet } from "react-native-unistyles";
export const Container = ({ children }: { children: React.ReactNode }) => {
return <SafeAreaView style={styles.container}>{children}</SafeAreaView>;
};
const styles = StyleSheet.create((theme, rt) => ({
container: {
flex: 1,
backgroundColor: theme.colors.background,
paddingBottom: rt.insets.bottom,
},
}));