import { StyleSheet, SafeAreaView, ScrollView, TouchableOpacity, View, Image, Text, StatusBar, Pressable } from "react-native"; import MapView from 'react-native-maps'; import { FontAwesomeIcon } from '@fortawesome/react-native-fontawesome'; import { faMugSaucer } from '@fortawesome/free-solid-svg-icons/faMugSaucer'; import { useState } from "react"; const img_1 = require('../../assets/img/Geonet_polos.png') function SurveyPJU({navigation}:any): React.JSX.Element { const [sendItem, setSendItem] = useState(0); const [iconActive,setIconActive] = useState('#0386D0') const onPressSent = () => { navigation.navigate('Sent', { screen: 'Sent', // onGoBack: (data:number) => { // // Callback function to handle data from ScreenB // setSendItem(data); // }, }) } const onPressDraft = () => { navigation.navigate('Draft', { screen: 'Draft', // onGoBack: (data:number) => { // // Callback function to handle data from ScreenB // setDraftItem(data); // }, }) } const onPressInbox = () => { navigation.navigate('Inbox', { screen: 'Inbox', }) } return( {/* aaa */} { navigation.navigate('PJU Map Collect', { screen: 'PJU Map Collect'}) }}> Add Data { navigation.navigate('Sent Penerangan Jalan Umum', { screen: 'Sent'}) }}> Sent {/* aaa */} { navigation.navigate('Inbox Penerangan Jalan Umum', { screen: 'Inbox'}) }}> Inbox Draft { navigation.navigate('Home', { screen: 'Home', }) }}> { navigation.navigate('Survey', { screen: 'Survey', }) }}> {/* Menus */} ) } export default SurveyPJU; const styles = StyleSheet.create({ menus: { backgroundColor: '#E7E7E7', flexDirection: 'row', justifyContent: 'space-around', paddingTop: 10, paddingBottom: 10, paddingLeft: 10, paddingRight: 10 }, menu_item: { justifyContent:'center', // alignContent:'center', // alignItems:'center' }, buttonImageIconStyle: { padding: 10, margin: 5, height: 25, width: 25, resizeMode: 'stretch', }, content: { paddingTop: 8, paddingHorizontal: 16, }, /** Header */ header: { paddingHorizontal: 16, marginBottom: 12, }, headerTop: { marginHorizontal: -6, flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between', }, headerAction: { width: 40, height: 40, alignItems: 'center', justifyContent: 'center', }, headerTitle: { fontSize: 32, fontWeight: '700', color: '#1d1d1d', }, /** Card */ card: { flexDirection:'row', height: 100, position: 'relative', borderRadius: 8, marginBottom: 16, shadowColor: 'rgba(0, 0, 0, 0.5)', shadowOffset: { width: 0, height: 1, }, shadowOpacity: 0.2, shadowRadius: 1.41, elevation: 2, borderTopLeftRadius: 8, borderTopRightRadius: 8, borderBottomRightRadius:8, borderBottomLeftRadius:8 }, cardLikeWrapper: { position: 'absolute', zIndex: 1, top: 12, right: 12, }, cardLike: { width: 40, height: 40, borderRadius: 9999, backgroundColor: '#fff', alignItems: 'center', justifyContent: 'center', }, cardTop: { borderTopLeftRadius: 8, borderTopRightRadius: 8, }, cardImg: { width: '100%', height: '100%', borderTopLeftRadius: 8, borderTopRightRadius: 8, }, cardBody: { padding: 12, }, cardHeader: { flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between', }, cardTitle: { fontSize: 18, fontWeight: '500', color: '#232425', marginRight: 'auto', }, cardStars: { marginLeft: 2, marginRight: 4, fontSize: 15, fontWeight: '500', color: '#232425', }, cardDates: { marginTop: 4, fontSize: 16, color: '#595a63', }, cardPrice: { marginTop: 6, fontSize: 16, color: '#232425', }, });