You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

HomeScreen.jsx 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import React from 'react';
  2. import { View, Text, SafeAreaView, ScrollView, ImageBackground, TextInput, TouchableOpacity, StyleSheet } from 'react-native';
  3. import Feather from '@expo/vector-icons/Feather';
  4. import { windowWidth } from '../utils/Dimensions';
  5. const HomeScreen = ({navigation}) => {
  6. return (
  7. <SafeAreaView style={{flex: 1, backgroundColor: '#fff'}}>
  8. <ScrollView style={{padding: 20}}>
  9. <View style={styles.wrapper}>
  10. <Text style={{fontSize: 18}}>
  11. Hello Diligent
  12. </Text>
  13. <TouchableOpacity onPress={() => navigation.openDrawer()}>
  14. <ImageBackground source={require('../assets/images/diligent-purple.png')} style={styles.imageBackground} imageStyle={{borderRadius:25}} />
  15. </TouchableOpacity>
  16. </View>
  17. <View style={styles.search}>
  18. <Feather name='search' size={20} color='#C6C6C6' style={{marginRight: 5}} />
  19. <TextInput placeholder='Search' placeholderTextColor='#C6C6C6' />
  20. </View>
  21. </ScrollView>
  22. </SafeAreaView>
  23. )
  24. }
  25. const styles = StyleSheet.create({
  26. wrapper: {
  27. flexDirection: 'row',
  28. justifyContent: 'space-between',
  29. marginBottom: 20
  30. },
  31. imageBackground: {
  32. width: 35,
  33. height: 35
  34. },
  35. search: {
  36. flexDirection: 'row',
  37. borderColor: '#C6C6C6',
  38. borderWidth: 1,
  39. borderRadius: 8,
  40. paddingHorizontal: 10,
  41. paddingVertical: 8
  42. }
  43. })
  44. export default HomeScreen;