mirror of
https://github.com/selfxyz/self.git
synced 2026-04-27 03:01:15 -04:00
reading omg it's gorgeous
This commit is contained in:
16
app/App.tsx
16
app/App.tsx
@@ -354,6 +354,15 @@ function App(): JSX.Element {
|
||||
}
|
||||
};
|
||||
|
||||
const handleNative = async () => {
|
||||
const value = await NativeModules.PassportReader.scanPassport(
|
||||
passportNumber,
|
||||
dateOfBirth,
|
||||
dateOfExpiry
|
||||
);
|
||||
console.log(`native tells us ${value}`);
|
||||
};
|
||||
|
||||
return (
|
||||
<GluestackUIProvider config={config}>
|
||||
<SafeAreaView style={backgroundStyle}>
|
||||
@@ -563,6 +572,13 @@ function App(): JSX.Element {
|
||||
</Button>
|
||||
{testResult && <Text>{testResult}</Text>}
|
||||
|
||||
<Button
|
||||
onPress={handleNative}
|
||||
marginTop={10}
|
||||
>
|
||||
<ButtonText>Call ios native lib</ButtonText>
|
||||
</Button>
|
||||
|
||||
</View>
|
||||
</ScrollView>
|
||||
</SafeAreaView>
|
||||
|
||||
Reference in New Issue
Block a user