diff --git a/app/.bundle/config b/app/.bundle/config new file mode 100644 index 000000000..848943bb5 --- /dev/null +++ b/app/.bundle/config @@ -0,0 +1,2 @@ +BUNDLE_PATH: "vendor/bundle" +BUNDLE_FORCE_RUBY_PLATFORM: 1 diff --git a/app/.eslintrc.js b/app/.eslintrc.js new file mode 100644 index 000000000..187894b6a --- /dev/null +++ b/app/.eslintrc.js @@ -0,0 +1,4 @@ +module.exports = { + root: true, + extends: '@react-native', +}; diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 000000000..0cab2ac6f --- /dev/null +++ b/app/.gitignore @@ -0,0 +1,66 @@ +# OSX +# +.DS_Store + +# Xcode +# +build/ +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata +*.xccheckout +*.moved-aside +DerivedData +*.hmap +*.ipa +*.xcuserstate +ios/.xcode.env.local + +# Android/IntelliJ +# +build/ +.idea +.gradle +local.properties +*.iml +*.hprof +.cxx/ +*.keystore +!debug.keystore + +# node.js +# +node_modules/ +npm-debug.log +yarn-error.log + +# fastlane +# +# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the +# screenshots whenever they are needed. +# For more information about the recommended setup visit: +# https://docs.fastlane.tools/best-practices/source-control/ + +**/fastlane/report.xml +**/fastlane/Preview.html +**/fastlane/screenshots +**/fastlane/test_output + +# Bundle artifact +*.jsbundle + +# Ruby / CocoaPods +/ios/Pods/ +/vendor/bundle/ + +# Temporary files created by Metro to check the health of the file watcher +.metro-health-check* + +# testing +/coverage diff --git a/app/.prettierrc.js b/app/.prettierrc.js new file mode 100644 index 000000000..2b540746a --- /dev/null +++ b/app/.prettierrc.js @@ -0,0 +1,7 @@ +module.exports = { + arrowParens: 'avoid', + bracketSameLine: true, + bracketSpacing: false, + singleQuote: true, + trailingComma: 'all', +}; diff --git a/app/.vscode/settings.json b/app/.vscode/settings.json new file mode 100644 index 000000000..7b3712b0d --- /dev/null +++ b/app/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "java.compile.nullAnalysis.mode": "disabled" +} diff --git a/app/.watchmanconfig b/app/.watchmanconfig new file mode 100644 index 000000000..0967ef424 --- /dev/null +++ b/app/.watchmanconfig @@ -0,0 +1 @@ +{} diff --git a/app/App.tsx b/app/App.tsx new file mode 100644 index 000000000..008f9ac9e --- /dev/null +++ b/app/App.tsx @@ -0,0 +1,219 @@ +/** + * Sample React Native App + * https://github.com/facebook/react-native + * + * @format + */ + +import React, {useEffect} from 'react'; +import type {PropsWithChildren} from 'react'; +import { + SafeAreaView, + ScrollView, + StatusBar, + StyleSheet, + Text, + useColorScheme, + View, + Button, + // NativeModules, + DeviceEventEmitter, +} from 'react-native'; + +import { + Colors, + DebugInstructions, + Header, + LearnMoreLinks, + ReloadInstructions, +} from 'react-native/Libraries/NewAppScreen'; +// @ts-ignore +import PassportReader from 'react-native-passport-reader'; + +// const {PassportReaderModule} = NativeModules; + +const NewModuleButton = () => { + const onPress = () => { + PassportReader.createCalendarEvent('testName', 'testLocation'); + }; + + return ( +