import React, { useState } from 'react'; import { StyleSheet, View, Pressable, TouchableOpacity } from 'react-native'; import { useLanguage } from 'ordering-components/native'; import { useTheme } from 'styled-components/native'; import { Container } from '../../layouts/Container'; import OImage from '../../components/shared/OImage'; import OButton from '../../components/shared/OButton'; import { LanguageSelector } from '../../components/LanguageSelector'; import { LogoutPopup } from '../../components/LogoutPopup'; import { PORTRAIT, LANDSCAPE, useDeviceOrientation } from "../../../../../src/hooks/DeviceOrientation"; import { OIcon } from '../../components/shared'; const Intro = (props: any): React.ReactElement => { const { navigation } = props; const theme = useTheme(); const [, t] = useLanguage(); const [refreshing] = useState(false); const [showLogoutPopup, setShowLogoutPopup] = useState(false); const [orientationState] = useDeviceOrientation(); const goBusiness = () => { navigation.navigate('DeliveryType', { callback: () => { navigation.navigate('Business'); }, goBack: () => { navigation.goBack(); }, } ); }; return ( // setShowLogoutPopup(true)} // /> // } // > <> setShowLogoutPopup(true)} > {orientationState.orientation === PORTRAIT ? ( ) : ( )} setShowLogoutPopup(false)} /> // ); }; const styles = StyleSheet.create({ buttonLandStyle: { minWidth: 130, marginBottom: 16 } }); const _offset = 50; export default Intro;