您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

HomeScreen.jsx 1.2KB

123456789101112131415161718192021222324252627282930313233343536
  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. </ScrollView>
  18. </SafeAreaView>
  19. )
  20. }
  21. const styles = StyleSheet.create({
  22. wrapper: {
  23. flexDirection: 'row',
  24. justifyContent: 'space-between',
  25. marginBottom: 20
  26. },
  27. imageBackground: {
  28. width: 35,
  29. height: 35
  30. }
  31. })
  32. export default HomeScreen;