Initial commit

This commit is contained in:
John Lyon-Smith
2018-02-22 17:57:27 -08:00
commit e80f5490d5
196 changed files with 38982 additions and 0 deletions

8
mobile/.babelrc Normal file
View File

@@ -0,0 +1,8 @@
{
"presets": ["babel-preset-expo"],
"env": {
"development": {
"plugins": ["transform-react-jsx-source"]
}
}
}

View File

@@ -0,0 +1,5 @@
{
"expoServerPort": 19000,
"packagerPort": 19001,
"packagerPid": 7732
}

View File

@@ -0,0 +1,7 @@
{
"hostType": "tunnel",
"lanType": "ip",
"dev": true,
"minify": false,
"urlRandomness": null
}

75
mobile/.flowconfig Normal file
View File

@@ -0,0 +1,75 @@
[ignore]
; We fork some components by platform
.*/*[.]android.js
; Ignore templates for 'react-native init'
<PROJECT_ROOT>/node_modules/react-native/local-cli/templates/.*
; Ignore RN jest
<PROJECT_ROOT>/node_modules/react-native/jest/.*
; Ignore RNTester
<PROJECT_ROOT>/node_modules/react-native/RNTester/.*
; Ignore the website subdir
<PROJECT_ROOT>/node_modules/react-native/website/.*
; Ignore the Dangerfile
<PROJECT_ROOT>/node_modules/react-native/danger/dangerfile.js
; Ignore Fbemitter
<PROJECT_ROOT>/node_modules/fbemitter/.*
; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/node_modules/react-native/\.buckd/
; Ignore unexpected extra "@providesModule"
.*/node_modules/.*/node_modules/fbjs/.*
; Ignore polyfills
<PROJECT_ROOT>/node_modules/react-native/Libraries/polyfills/.*
; Ignore various node_modules
<PROJECT_ROOT>/node_modules/react-native-gesture-handler/.*
<PROJECT_ROOT>/node_modules/expo/.*
<PROJECT_ROOT>/node_modules/react-navigation/.*
<PROJECT_ROOT>/node_modules/xdl/.*
<PROJECT_ROOT>/node_modules/reqwest/.*
<PROJECT_ROOT>/node_modules/metro-bundler/.*
[include]
[libs]
node_modules/react-native/Libraries/react-native/react-native-interface.js
node_modules/react-native/flow/
node_modules/expo/flow/
[options]
emoji=true
module.system=haste
module.file_ext=.js
module.file_ext=.jsx
module.file_ext=.json
module.file_ext=.ios.js
munge_underscores=true
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\)$' -> 'RelativeImageStub'
suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState
suppress_type=$FixMe
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-6]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-6]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
unsafe.enable_getters_and_setters=true
[version]
^0.56.0

1
mobile/.watchmanconfig Normal file
View File

@@ -0,0 +1 @@
{}

23
mobile/App.js Normal file
View File

@@ -0,0 +1,23 @@
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
export default class App extends React.Component {
render() {
return (
<View style={styles.container}>
<Text>Did this change?</Text>
<Text>Changes you make will automatically reload.</Text>
<Text>Shake your phone to open the developer menu.</Text>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});

9
mobile/App.test.js Normal file
View File

@@ -0,0 +1,9 @@
import React from 'react';
import App from './App';
import renderer from 'react-test-renderer';
it('renders without crashing', () => {
const rendered = renderer.create(<App />).toJSON();
expect(rendered).toBeTruthy();
});

5
mobile/app.json Normal file
View File

@@ -0,0 +1,5 @@
{
"expo": {
"sdkVersion": "25.0.0"
}
}

View File

@@ -0,0 +1,58 @@
import React, { Component } from 'react';
import { AppRegistry, StyleSheet, Text, View } from 'react-native';
let styles = {
}
export class LoginPage extends Component {
constructor(props) {
super(props)
this.state = {
userName: 'john@lyon-smith.org',
password: 'test123!'
}
}
render() {
return (
<KeyboardAvoidingView className="view" behavior="padding">
<ScrollView>
<View className="logoBox">
<Image className="image" source={acmLogo}/>
</View>
<Text className="username">User Name:</Text>
<View className="fieldBlock">
<IconInput width={250} rounded={true} icon={iconEmail} onChange={value => this.setState({email: value})}
value={this.state.email} iconStyle={{width: 20, height: 24, top: 12}}/>
</View>
<View className="fieldBlock">
<IconInput
password={true}
rounded={true}
width={250}
icon={iconPassword}
iconStyle={{left: 12, top: 8}}
onChange={value => this.setState({password: value})}
value={this.state.password}
/>
</View>
<View className="nextBlock">
<NextButton busy={auth.authInProgress} width={250} title="Log In" onPress={() => this.login()}/>
</View>
{errorMessage}
<TouchableOpacity onPress={() => this.toggleLoginData()}>
<View className="linksBlock">
<Text className="linksText">Sign Up</Text>
<Text className="linksTextRight">Forgot password?</Text>
</View>
</TouchableOpacity>
</ScrollView>
</KeyboardAvoidingView>
)
}
}

26
mobile/package.json Normal file
View File

@@ -0,0 +1,26 @@
{
"name": "DeightonAR",
"version": "0.1.0",
"private": true,
"devDependencies": {
"react-native-scripts": "1.11.1",
"jest-expo": "25.0.0",
"react-test-renderer": "16.2.0"
},
"main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
"scripts": {
"start": "react-native-scripts start",
"eject": "react-native-scripts eject",
"android": "react-native-scripts android",
"ios": "react-native-scripts ios",
"test": "node node_modules/jest/bin/jest.js"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
"expo": "^25.0.0",
"react": "16.2.0",
"react-native": "0.52.0"
}
}

6515
mobile/yarn.lock Normal file

File diff suppressed because it is too large Load Diff