mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
fix lib import
This commit is contained in:
@@ -52,8 +52,8 @@ const AppScreen: React.FC<AppScreenProps> = ({ setSheetAppListOpen, setSheetRegi
|
||||
|
||||
const scanQRCode = () => {
|
||||
if (Platform.OS === 'ios') {
|
||||
if (NativeModules.QRScannerModule && NativeModules.QRScannerModule.scanQRCode) {
|
||||
NativeModules.QRScannerModule.scanQRCode()
|
||||
if (NativeModules.QRScannerBridge && NativeModules.QRScannerBridge.scanQRCode) {
|
||||
NativeModules.QRScannerBridge.scanQRCode()
|
||||
.then((result: string) => {
|
||||
handleQRCodeScan(result);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user