diff --git a/mobileLst/app/index.tsx b/mobileLst/app/index.tsx index 8732cd5..5c718d7 100644 --- a/mobileLst/app/index.tsx +++ b/mobileLst/app/index.tsx @@ -3,6 +3,7 @@ import React, { useState } from "react"; import { Button, FlatList, + NativeModules, Pressable, StyleSheet, Text, @@ -10,7 +11,10 @@ import { View, } from "react-native"; +const { KeyenceModule } = NativeModules; + export default function App() { + KeyenceModule.hello().then(console.log).catch(console.error); const [buffer, setBuffer] = useState(""); const [items, setItems] = useState([]); const [status, setStatus] = useState(""); @@ -94,7 +98,7 @@ export default function App() { setItems([]); }} /> - Scan Barcodes + Scan Barcode {/* The working input you already have */}