import React, { useEffect, useState } from 'react';
import { ScrollView, View, Text, Image, TouchableOpacity, BackHandler } from 'react-native';
import { FontAwesome, Ionicons } from '@expo/vector-icons';
import config from '../../components/data/config.json'
import { styles } from '@/components/style/style';
import { FAB } from 'react-native-elements';
import { useNavigation, NavigationProp, useFocusEffect } from '@react-navigation/native';
import { GestureHandlerRootView, TextInput } from 'react-native-gesture-handler';
const InputData = (props:any) => {
const TextType = function(){
return (<>
>)
}
return (<>
{props && props.type && props.type == 'text'?
:
<>>
}
>)
}
const HorizontalScrollView = () => {
const [typeInput, setTypeInput] = useState('text')
const navigation = useNavigation>();
useFocusEffect(
React.useCallback(() => {
const onBackPress = () => {
navigation.navigate("detailcontact");
return true; // Prevent default behavior (exit app)
};
BackHandler.addEventListener('hardwareBackPress', onBackPress);
navigation.setOptions({ headerLeft: () => null }); // Remove back button
return () => {
BackHandler.removeEventListener('hardwareBackPress', onBackPress);
};
}, [navigation])
);
const backtoCustomerDetail = function(){
navigation.navigate('detailcontact');
}
return (
Nama Perusahaan
Simpan
Kembali
);
};
export default HorizontalScrollView;