Laser Barcode Scanner Issue

Hi,Is it possible using laser barcode scanner in expo?

i did something like this , but i cant make it to work.

import React, { useState, useEffect } from 'react';
import { Text, View, StyleSheet, Button } from 'react-native';
import { BarCodeScanner } from 'expo-barcode-scanner';

export default function App() {
    const [scanned, setScanned] = useState(false);

    const handleBarCodeScanned = ({  data }) => {
    const handleKeyPress = (event) => {
        if(event.key === 'Enter'){

    return (
        onBarCodeScanned={scanned ? undefined : handleKeyPress}

Hi @artem.alekseev

expo-barcode-scanner is specifically for scanning barcodes using the device’s camera. Not an external scanner. The laser scanner will probably just send through key press events or something like that, so you might be able to treat it like a keyboard.

But search for things like “laser barcode scanner react native”. I found the following possibilities:

Because the above all appear to use native code, you would either have to eject, or you could use EAS Build. Depending on exactly what changes they tell you to make to the native code in your app, you may not need to do anything, or you might need to write a Config Plugin to get it to work.

Thank you so much wodin , will take a look on those!