Initial commit
This commit is contained in:
8
mobile/.babelrc
Normal file
8
mobile/.babelrc
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"presets": ["babel-preset-expo"],
|
||||
"env": {
|
||||
"development": {
|
||||
"plugins": ["transform-react-jsx-source"]
|
||||
}
|
||||
}
|
||||
}
|
||||
5
mobile/.expo/packager-info.json
Normal file
5
mobile/.expo/packager-info.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"expoServerPort": 19000,
|
||||
"packagerPort": 19001,
|
||||
"packagerPid": 7732
|
||||
}
|
||||
7
mobile/.expo/settings.json
Normal file
7
mobile/.expo/settings.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"hostType": "tunnel",
|
||||
"lanType": "ip",
|
||||
"dev": true,
|
||||
"minify": false,
|
||||
"urlRandomness": null
|
||||
}
|
||||
75
mobile/.flowconfig
Normal file
75
mobile/.flowconfig
Normal 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
1
mobile/.watchmanconfig
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
23
mobile/App.js
Normal file
23
mobile/App.js
Normal 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
9
mobile/App.test.js
Normal 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
5
mobile/app.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"expo": {
|
||||
"sdkVersion": "25.0.0"
|
||||
}
|
||||
}
|
||||
58
mobile/containers/LoginPage.js
Normal file
58
mobile/containers/LoginPage.js
Normal 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
26
mobile/package.json
Normal 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
6515
mobile/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user