Browse Source

fix(home): change layout view home page

master
farhantock 5 months ago
parent
commit
e543385b03
  1. 12
      src/screens/Home.js

12
src/screens/Home.js

@ -1,5 +1,5 @@
import React, { useEffect, useCallback, useMemo, useState, useRef } from 'react'; import React, { useEffect, useCallback, useMemo, useState, useRef } from 'react';
import { Card, Text, Avatar, useTheme, IconButton, FAB, Button, Tooltip, TouchableRipple } from 'react-native-paper'; import { Card, Text, Avatar, useTheme, IconButton, FAB, Button, Tooltip, TouchableRipple, Badge } from 'react-native-paper';
import { RefreshControl, StyleSheet, View, Alert, PermissionsAndroid, Platform, ToastAndroid, ScrollView, StatusBar } from 'react-native'; import { RefreshControl, StyleSheet, View, Alert, PermissionsAndroid, Platform, ToastAndroid, ScrollView, StatusBar } from 'react-native';
import { launchCamera } from 'react-native-image-picker'; import { launchCamera } from 'react-native-image-picker';
import { useFocusEffect } from '@react-navigation/native'; import { useFocusEffect } from '@react-navigation/native';
@ -185,7 +185,7 @@ const HomeScreen = ({ route, navigation }) => {
const saveToTemporaryFolder = async (markedImage, imageObject) => { const saveToTemporaryFolder = async (markedImage, imageObject) => {
try { try {
const tempPath = `file://${RNFS.TemporaryDirectoryPath}/presensi/${imageObject.drop_point_id}_${moment().format('YYYYMMDDHHmmss')}.jpg`; const tempPath = `file://${RNFS.TemporaryDirectoryPath}/presensi/${moment().format('YYYYMMDDHHmmss')}.jpg`;
if (!requestAccessStoragePermission()) { if (!requestAccessStoragePermission()) {
return; return;
@ -217,6 +217,12 @@ const HomeScreen = ({ route, navigation }) => {
penuh semangat dan produktivitas penuh semangat dan produktivitas
</Text> </Text>
</View> </View>
<IconButton
icon="bell"
iconColor={colors.pureWhite}
size={24}
onPress={() => { navigation.navigate('NotificationScreen') }}
/>
</View> </View>
<Card elevation={4} style={[styles.card, { backgroundColor: 'white' }]}> <Card elevation={4} style={[styles.card, { backgroundColor: 'white' }]}>
@ -338,7 +344,7 @@ const styles = StyleSheet.create({
}, },
container: { container: {
flex: 1, flex: 1,
marginTop: 20 marginTop: 20,
}, },
precenseDate: { precenseDate: {
backgroundColor: colors.semiBlue, backgroundColor: colors.semiBlue,

Loading…
Cancel
Save