|
|
@ -1,14 +1,18 @@ |
|
|
|
import React, { useEffect, useCallback, useMemo, useState, useRef } from 'react'; |
|
|
|
import React, { useEffect, useCallback, useMemo, useState, useRef } from 'react'; |
|
|
|
import { Icon, Card, Text, Avatar, useTheme, IconButton, Appbar, Button } from 'react-native-paper'; |
|
|
|
import { Icon, Card, Text, Avatar, useTheme, IconButton, Appbar, Button } from 'react-native-paper'; |
|
|
|
import { RefreshControl, StyleSheet, View, ScrollView, Image, Dimensions } from 'react-native'; |
|
|
|
import { RefreshControl, StyleSheet, View, ScrollView, Image, Dimensions } from 'react-native'; |
|
|
|
|
|
|
|
import { colors } from '../utils/color' |
|
|
|
|
|
|
|
import { strings } from '../utils/i18n'; |
|
|
|
|
|
|
|
import { StatusBar } from 'react-native'; |
|
|
|
export default function ServiceScreen({ route, navigation }) { |
|
|
|
export default function ServiceScreen({ route, navigation }) { |
|
|
|
const LeftContent = () => <Avatar.Icon size={40} icon="bell" backgroundColor='#1C1B40' /> |
|
|
|
const LeftContent = () => <Avatar.Icon size={40} icon="bell" backgroundColor={colors.blue} /> |
|
|
|
const RightContent = () => <Text variant="bodyMedium">3 hari yang lalu</Text> |
|
|
|
const RightContent = () => <Text variant="bodyMedium">3 hari yang lalu</Text> |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<View style={styles.container}> |
|
|
|
<View style={styles.container}> |
|
|
|
|
|
|
|
<StatusBar backgroundColor={colors.pureWhite} barStyle='dark-content' translucent={true} /> |
|
|
|
<Appbar.Header mode='center-aligned' style={{ backgroundColor: 'white' }}> |
|
|
|
<Appbar.Header mode='center-aligned' style={{ backgroundColor: 'white' }}> |
|
|
|
<Appbar.BackAction onPress={() => { navigation.goBack() }} /> |
|
|
|
<Appbar.BackAction onPress={() => { navigation.goBack() }} /> |
|
|
|
<Appbar.Content title="Notifikasi" /> |
|
|
|
<Appbar.Content title={strings('global.notification')} /> |
|
|
|
<Appbar.Action icon='check-all' onPress={() => { }} /> |
|
|
|
<Appbar.Action icon='check-all' onPress={() => { }} /> |
|
|
|
</Appbar.Header> |
|
|
|
</Appbar.Header> |
|
|
|
<ScrollView> |
|
|
|
<ScrollView> |
|
|
@ -27,12 +31,12 @@ const styles = StyleSheet.create({ |
|
|
|
container: { |
|
|
|
container: { |
|
|
|
flex: 1, |
|
|
|
flex: 1, |
|
|
|
marginTop: 20, |
|
|
|
marginTop: 20, |
|
|
|
|
|
|
|
backgroundColor: colors.catskillWhite |
|
|
|
}, |
|
|
|
}, |
|
|
|
card: { |
|
|
|
card: { |
|
|
|
marginTop: 15, |
|
|
|
marginTop: 15, |
|
|
|
marginHorizontal: 10, |
|
|
|
marginHorizontal: 10, |
|
|
|
marginVertical: 2, |
|
|
|
backgroundColor: colors.pureWhite |
|
|
|
backgroundColor: 'white' |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |