login screen done

This commit is contained in:
2025-06-25 16:36:17 +05:30
parent f0a87b818b
commit 2d901a407a
5 changed files with 13 additions and 17 deletions
+2 -3
View File
@@ -4,11 +4,11 @@ import React from 'react';
import { StyleSheet, SafeAreaView, StatusBar } from 'react-native';
import LinearGradient from 'react-native-linear-gradient';
const Background = ({ children, barcolor = 'light-content', gradientColors = ['#4c669f', '#3b5998', '#192f6a'] }) => {
const Background = ({ children, barcolor = 'light-content'}) => {
return (
<SafeAreaView style={styles.container}>
<StatusBar barStyle={barcolor} backgroundColor="transparent" translucent />
<LinearGradient colors={gradientColors} style={styles.gradient}>
<LinearGradient colors={['#E3EBF8', '#ffffff']} start={{ x: 0.5, y: 0 }} end={{ x: 0.5, y: 1 }} style={styles.gradient}>
{children}
</LinearGradient>
</SafeAreaView>
@@ -21,7 +21,6 @@ const styles = StyleSheet.create({
},
gradient: {
flex: 1,
paddingHorizontal: 16, // optional padding
},
});