Commit 101fdf42 authored by Basnayake N.S.N.'s avatar Basnayake N.S.N.

Upload New File

parent f7b86b50
import React from 'react';
import { View, Text, ImageBackground, StyleSheet } from 'react-native';
const SplashScreen = () => {
return (
<ImageBackground
source={require('./assets/screenWithVersion.png')} // Replace with your image path
style={styles.backgroundImage}
>
{/* <View style={styles.container}>
<Text style={styles.text}>PlantPal</Text>
</View> */}
</ImageBackground>
);
};
const styles = StyleSheet.create({
backgroundImage: {
flex: 1,
resizeMode: 'cover', // This will make the image cover the entire screen
justifyContent: 'center',
alignItems: 'center',
},
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
text: {
fontSize: 50,
color: 'white', // Set text color to be visible on the image
fontWeight: 'bold',
},
});
export default SplashScreen;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment