mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
16 lines
471 B
Handlebars
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,
|
|
},
|
|
}));
|