diff --git a/app/mobile/.editorconfig b/app/mobile/.editorconfig deleted file mode 100644 index 7c286132..00000000 --- a/app/mobile/.editorconfig +++ /dev/null @@ -1,3 +0,0 @@ -# Windows files -[*.bat] -end_of_line = crlf diff --git a/app/mobile/.eslintrc.js b/app/mobile/.eslintrc.js deleted file mode 100644 index 40c6dcd0..00000000 --- a/app/mobile/.eslintrc.js +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = { - root: true, - extends: '@react-native-community', -}; diff --git a/app/mobile/.flowconfig b/app/mobile/.flowconfig deleted file mode 100644 index 4320b707..00000000 --- a/app/mobile/.flowconfig +++ /dev/null @@ -1,65 +0,0 @@ -[ignore] -; We fork some components by platform -.*/*[.]android.js - -; Ignore "BUCK" generated dirs -/\.buckd/ - -; Ignore polyfills -node_modules/react-native/Libraries/polyfills/.* - -; Flow doesn't support platforms -.*/Libraries/Utilities/LoadingView.js - -[untyped] -.*/node_modules/@react-native-community/cli/.*/.* - -[include] - -[libs] -node_modules/react-native/interface.js -node_modules/react-native/flow/ - -[options] -emoji=true - -exact_by_default=true - -format.bracket_spacing=false - -module.file_ext=.js -module.file_ext=.json -module.file_ext=.ios.js - -munge_underscores=true - -module.name_mapper='^react-native/\(.*\)$' -> '/node_modules/react-native/\1' -module.name_mapper='^@?[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '/node_modules/react-native/Libraries/Image/RelativeImageStub' - -suppress_type=$FlowIssue -suppress_type=$FlowFixMe -suppress_type=$FlowFixMeProps -suppress_type=$FlowFixMeState - -[lints] -sketchy-null-number=warn -sketchy-null-mixed=warn -sketchy-number=warn -untyped-type-import=warn -nonstrict-import=warn -deprecated-type=warn -unsafe-getters-setters=warn -unnecessary-invariant=warn -signature-verification-failure=warn - -[strict] -deprecated-type -nonstrict-import -sketchy-null -unclear-type -unsafe-getters-setters -untyped-import -untyped-type-import - -[version] -^0.158.0 diff --git a/app/mobile/.gitattributes b/app/mobile/.gitattributes index 45a3dcb2..d42ff183 100644 --- a/app/mobile/.gitattributes +++ b/app/mobile/.gitattributes @@ -1,3 +1 @@ -# Windows files should use crlf line endings -# https://help.github.com/articles/dealing-with-line-endings/ -*.bat text eol=crlf +*.pbxproj -text diff --git a/app/mobile/.gitignore b/app/mobile/.gitignore index cc53454e..c8eb0f9a 100644 --- a/app/mobile/.gitignore +++ b/app/mobile/.gitignore @@ -20,6 +20,7 @@ DerivedData *.hmap *.ipa *.xcuserstate +project.xcworkspace # Android/IntelliJ # @@ -42,19 +43,13 @@ buck-out/ *.keystore !debug.keystore -# 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 - -# Bundle artifact +# Bundle artifacts *.jsbundle # CocoaPods /ios/Pods/ + +# Expo +.expo/ +web-build/ +dist/ diff --git a/app/mobile/.prettierrc.js b/app/mobile/.prettierrc.js deleted file mode 100644 index 84196d95..00000000 --- a/app/mobile/.prettierrc.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = { - bracketSpacing: false, - jsxBracketSameLine: true, - singleQuote: true, - trailingComma: 'all', - arrowParens: 'avoid', -}; diff --git a/app/mobile/.watchmanconfig b/app/mobile/.watchmanconfig deleted file mode 100644 index 9e26dfee..00000000 --- a/app/mobile/.watchmanconfig +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/app/mobile/App.js b/app/mobile/App.js index edda80df..181f3cee 100644 --- a/app/mobile/App.js +++ b/app/mobile/App.js @@ -1,51 +1,21 @@ -/** - * Sample React Native App - * https://github.com/facebook/react-native - * - * @format - * @flow strict-local - */ - +import { StatusBar } from 'expo-status-bar'; import React from 'react'; -import type {Node} from 'react'; -import { - SafeAreaView, - ScrollView, - StatusBar, - StyleSheet, - Text, - useColorScheme, - View, - Button, -} from 'react-native'; - -const App: () => Node = () => { - - const test = () => { - console.log("PRESSED: 7000"); - var ws = new WebSocket('ws://192.168.13.233:7000/status'); - ws.onerror = (e) => { - console.log("error: ", e); - } - ws.onmessage = (e) => { - console.log("message: ", e); - } - ws.onclose = (e) => { - console.log("close: ", e); - } - ws.onopen = (e) => { - console.log("connected"); - ws.send('something'); - } - } +import { StyleSheet, Text, View } from 'react-native'; +export default function App() { return ( - - -