|
|
@ -6,11 +6,11 @@ import { |
|
|
|
Dimensions, |
|
|
|
Dimensions, |
|
|
|
ImageBackground, |
|
|
|
ImageBackground, |
|
|
|
StatusBar, |
|
|
|
StatusBar, |
|
|
|
Appearance, |
|
|
|
|
|
|
|
} from "react-native"; |
|
|
|
} from "react-native"; |
|
|
|
import { useNavigation } from "@react-navigation/native"; |
|
|
|
import { useNavigation } from "@react-navigation/native"; |
|
|
|
import { BarCodeScanner } from "expo-barcode-scanner"; |
|
|
|
import { BarCodeScanner } from "expo-barcode-scanner"; |
|
|
|
import { Entypo } from "@expo/vector-icons"; |
|
|
|
import { Entypo } from "@expo/vector-icons"; |
|
|
|
|
|
|
|
import {connect} from "react-redux"; |
|
|
|
|
|
|
|
|
|
|
|
import tw from "tailwind-rn"; |
|
|
|
import tw from "tailwind-rn"; |
|
|
|
import Colors from "../../../constants/Colors"; |
|
|
|
import Colors from "../../../constants/Colors"; |
|
|
@ -20,8 +20,7 @@ const { width, height } = Dimensions.get("screen"); |
|
|
|
//assets
|
|
|
|
//assets
|
|
|
|
import laptopImage from "../assets/laptop.png"; |
|
|
|
import laptopImage from "../assets/laptop.png"; |
|
|
|
|
|
|
|
|
|
|
|
export default function Scan({}) { |
|
|
|
function Scan({}) { |
|
|
|
const colorScheme = Appearance.getColorScheme(); |
|
|
|
|
|
|
|
const navigation = useNavigation(); |
|
|
|
const navigation = useNavigation(); |
|
|
|
const [hasPermission, setHasPermission] = useState(null); |
|
|
|
const [hasPermission, setHasPermission] = useState(null); |
|
|
|
const [scanned, setScanned] = useState(false); |
|
|
|
const [scanned, setScanned] = useState(false); |
|
|
@ -97,3 +96,9 @@ export default function Scan({}) { |
|
|
|
</ImageBackground> |
|
|
|
</ImageBackground> |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const mapStateToProps = (state) => ({ |
|
|
|
|
|
|
|
theme: state.publicApi.theme |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default connect(mapStateToProps)(Scan); |