From ffd5dd1c2c9e1394c8cb7f16e27c2cf6faad2a63 Mon Sep 17 00:00:00 2001 From: 0xturboblitz Date: Tue, 25 Jul 2023 22:35:32 +0200 Subject: [PATCH] front-end user flow --- app/App.tsx | 215 ++++++++++++++++++++++---------------------- app/utils/checks.ts | 16 ++++ 2 files changed, 123 insertions(+), 108 deletions(-) create mode 100644 app/utils/checks.ts diff --git a/app/App.tsx b/app/App.tsx index 008f9ac9e..24ae14683 100644 --- a/app/App.tsx +++ b/app/App.tsx @@ -1,11 +1,4 @@ -/** - * Sample React Native App - * https://github.com/facebook/react-native - * - * @format - */ - -import React, {useEffect} from 'react'; +import React, {useEffect, useState} from 'react'; import type {PropsWithChildren} from 'react'; import { SafeAreaView, @@ -18,6 +11,8 @@ import { Button, // NativeModules, DeviceEventEmitter, + TextInput, + ActivityIndicator, } from 'react-native'; import { @@ -29,29 +24,22 @@ import { } from 'react-native/Libraries/NewAppScreen'; // @ts-ignore import PassportReader from 'react-native-passport-reader'; +import {checkInputs} from './utils/checks'; // const {PassportReaderModule} = NativeModules; -const NewModuleButton = () => { - const onPress = () => { - PassportReader.createCalendarEvent('testName', 'testLocation'); - }; - - return ( -