Files
create-better-t-stack/apps/cli/templates/frontend/native/unistyles/components/container.tsx.hbs
2025-09-12 00:11:41 +05:30

16 lines
471 B
Handlebars

import React from "react";
import { SafeAreaView } from "react-native-safe-area-context";
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,
},
}));