Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from "react";
- import {
- View,
- Text,
- TouchableOpacity,
- ImageBackground,
- StatusBar,
- } from "react-native";
- import { LinearGradient } from "expo-linear-gradient";
- import { images, COLORS, SIZES, FONTS } from "../constants";
- const Login = ({ navigation }) => {
- function renderHeader() {
- return (
- <View
- style={{
- height: SIZES.height > 700 ? "65%" : "60%",
- }}
- >
- <ImageBackground
- source={images.loginBackground}
- style={{
- flex: 1,
- justifyContent: "flex-end",
- }}
- resizeMode="cover"
- >
- <LinearGradient
- start={{ x: 0, y: 0 }}
- end={{ x: 0, y: 1 }}
- colors={[COLORS.transparent, COLORS.black]}
- style={{
- height: 200,
- justifyContent: "flex-end",
- paddingHorizontal: SIZES.padding,
- }}
- >
- <Text
- style={{
- width: "80%",
- color: COLORS.white,
- ...FONTS.largeTitle,
- lineHeight: 45,
- }}
- >
- Make treats for your pets
- </Text>
- </LinearGradient>
- </ImageBackground>
- </View>
- );
- }
- return (
- <View
- style={{
- flex: 1,
- backgroundColor: COLORS.black,
- }}
- >
- <StatusBar barStyle="light-content" />
- {renderHeader()}
- </View>
- );
- };
- export default Login;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement