Dsdsdsdsds
Dsdsdsdsds
import {
StyleSheet,
Text,
View,
Button,
TextInput,
SafeAreaView,
StatusBar,
TouchableOpacity,
ImageBackground,
Image,
} from "react-native";
const image = {
uri:
"https://png.pngtree.com/thumb_back/fw800/background/20190223/ourmid/pngtree-
simple-atmosphere-blue-national-fitness-day-background-backgroundatmospheric-
backgroundblue-backgroundall-image_88134.jpg",
};
<View style={styles.containerMain}>
<ImageBackground source={image} style={styles.image}>
<Text style={styles.logo}>Stay Fit!</Text>
<View style={styles.containerMain}>
<TouchableOpacity style={styles.altbutton}>
<Image source={require("./assets/2.png")}/>
</TouchableOpacity>
</View>
<View style={styles.bottomView}>
<TouchableOpacity style={styles.butoanejos1}>
<Text style={styles.textjos}>Last Days Report</Text>
</TouchableOpacity>
<TouchableOpacity style={styles.butoanejos}>
<Text style={styles.textjos}>Achievments</Text>
</TouchableOpacity>
</View>
</ImageBackground>
</View>
/*<View style={styles.container}>
<View style={styles.buttonContainer}>
<Button title="Button 1"/>
</View>
<View style={styles.buttonContainer}>
<Button title="Button 2"/>
</View>
<View style={styles.container}>
<View style={styles.button} />
<View style={styles.button} />
</View>
</View>*/
);
}
}
image: {
flex: 1,
//resizeMode: "cover",
justifyContent: "center",
},
containerMain: {
flex: 1,
//alignItems: 'center',
//justifyContent: 'center',
},
bottomView: {
flex: 1,
flexdirection: "row",
width: "100%",
height: 50,
backgroundColor: "lightblue",
justifyContent: "space-between",
position: "absolute",
bottom: 0,
},
textStyle: {
color: "#fff",
fontSize: 18,
},
altbutton: {
backgroundColor: '#859a9b',
borderRadius: 20,
padding: 10,
marginBottom: 20,
shadowColor: '#303838',
shadowOffset: { width: 0, height: 5 },
shadowRadius: 10,
shadowOpacity: 0.35,
},
container: {
flex: 1,
flexDirection: "row",
backgroundColor: "#003f5c",
alignItems: "center",
justifyContent: "center",
},
parent: {
flex: 1,
flexDirection: "row",
justifyContent: "space-around",
},
/*container: {
flex: 1,
flexDirection: 'row',
justifyContent: 'space-between'
}*/ button: {
flex: 1,
alignItems: "center",
justifyContent: "center",
backgroundColor: "gr#003f5ceen",
width: "40%",
height: 40,
bottom: "0",
},
logo: {
//allign: "center",
upper: "0",
fontWeight: "bold",
fontSize: 50,
color: "#fb5b5a",
marginBottom: 0,
justifyContent:"center"
},
forgot: {
color: "white",
fontSize: 11,
},
butoanejos: {
right: 15,
flexDirection: "row",
flex: 1,
marginHorizontal: 20,
marginTop: 5,
position: "absolute",
position: "absolute",
bottom: "0",
width: "20%",
backgroundColor: "#fb5b5a",
borderRadius: 25,
height: 25,
alignItems: "center",
justifyContent: "center",
marginTop: 20,
marginBottom: 10,
},
butoanejos1: {
flexDirection: "row",
flex: 1,
marginHorizontal: 20,
marginTop: 5,
position: "absolute",
position: "absolute",
bottom: "0",
width: "20%",
backgroundColor: "#fb5b5a",
borderRadius: 25,
height: 25,
alignItems: "center",
justifyContent: "center",
marginTop: 20,
marginBottom: 10,
},
containerLogo: {
flex: 1,
padding: 26,
backgroundColor: "white",
justifyContent: "flex-start",
},
textjos: {
color: "white",
},
});