| 123456789101112131415161718192021222324252627282930313233343536 |
- import React from 'react';
- import { View, Text, SafeAreaView, ScrollView, ImageBackground, TextInput, TouchableOpacity, StyleSheet } from 'react-native';
- import Feather from '@expo/vector-icons/Feather';
-
- import { windowWidth } from '../utils/Dimensions';
-
- const HomeScreen = ({navigation}) => {
- return (
- <SafeAreaView style={{flex: 1, backgroundColor: '#fff'}}>
- <ScrollView style={{padding: 20}}>
- <View style={styles.wrapper}>
- <Text style={{fontSize: 18}}>
- Hello Diligent
- </Text>
- <TouchableOpacity onPress={() => navigation.openDrawer()}>
- <ImageBackground source={require('../assets/images/diligent-purple.png')} style={styles.imageBackground} imageStyle={{borderRadius:25}} />
- </TouchableOpacity>
- </View>
- </ScrollView>
- </SafeAreaView>
- )
- }
-
- const styles = StyleSheet.create({
- wrapper: {
- flexDirection: 'row',
- justifyContent: 'space-between',
- marginBottom: 20
- },
- imageBackground: {
- width: 35,
- height: 35
- }
- })
-
- export default HomeScreen;
|