profile not done

This commit is contained in:
Abin Toppo
2025-09-15 10:50:58 +05:30
parent 0ff184c400
commit 29ac0307db
14 changed files with 1462 additions and 40 deletions
+37
View File
@@ -0,0 +1,37 @@
import React from "react";
import { StatusBar, StyleSheet, View } from "react-native";
import { SafeAreaView } from "react-native-safe-area-context";
type AppViewProps = {
children: React.ReactNode;
backgroundColor?: string;
barStyle?: "default" | "light-content" | "dark-content";
};
export default function AppView({
children,
backgroundColor = "#f5f5f5",
barStyle = "dark-content",
}: AppViewProps) {
return (
<SafeAreaView style={[styles.safeArea, { backgroundColor }]}>
<StatusBar
translucent={false}
backgroundColor={backgroundColor}
barStyle={barStyle}
/>
<View style={styles.container}>{children}</View>
</SafeAreaView>
);
}
const styles = StyleSheet.create({
safeArea: {
flex: 1,
},
container: {
flex: 1,
paddingHorizontal: 16,
paddingTop: 8,
},
});