Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
143 changes: 34 additions & 109 deletions App.js
Original file line number Diff line number Diff line change
@@ -1,114 +1,39 @@
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator} from '@react-navigation/stack';
import * as React from 'react';
import useCachedResources from './hooks/useCachedResources';
import StartScreen from './screens/StartScreen';
import Form1 from './screens/Form1'
import Form2 from './screens/Form2';
import Form3 from './screens/Form3';
import Form4 from './screens/Form4';
import Form5 from './screens/Form5';
import Final from './screens/FinalScreen';
import { Form } from 'formik';

import React from 'react';
import {
SafeAreaView,
StyleSheet,
ScrollView,
View,
Text,
StatusBar,
} from 'react-native';

import {
Header,
LearnMoreLinks,
Colors,
DebugInstructions,
ReloadInstructions,
} from 'react-native/Libraries/NewAppScreen';
const Stack = createStackNavigator();

export default function App({}) {
const isLoadingComplete = useCachedResources();
if (!isLoadingComplete) {
return null;
} else {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="Home" headerShown= "false" >
<Stack.Screen name="Start" component={StartScreen} options={{ headerShown: false}}/>
<Stack.Screen name="Form1" component={Form1} options={{ headerShown: false} } />
<Stack.Screen name="Form2" component={Form2} options={{ headerShown: false} } />
<Stack.Screen name="Form3" component={Form3} options={{ headerShown: false} } />
<Stack.Screen name="Form4" component={Form4} options={{ headerShown: false} } />
<Stack.Screen name="Form5" component={Form5} options={{ headerShown: false} } />
<Stack.Screen name="Final" component={Final} options={{ headerShown: false} } />
</Stack.Navigator>
</NavigationContainer>
);
}
}

const App: () => React$Node = () => {
return (
<>
<StatusBar barStyle="dark-content" />
<SafeAreaView>
<ScrollView
contentInsetAdjustmentBehavior="automatic"
style={styles.scrollView}>
<Header />
{global.HermesInternal == null ? null : (
<View style={styles.engine}>
<Text style={styles.footer}>Engine: Hermes</Text>
</View>
)}
<View style={styles.body}>
<View style={styles.sectionContainer}>
<Text style={styles.sectionTitle}>Step One</Text>
<Text style={styles.sectionDescription}>
Edit <Text style={styles.highlight}>App.js</Text> to change this
screen and then come back to see your edits.
</Text>
</View>
<View style={styles.sectionContainer}>
<Text style={styles.sectionTitle}>See Your Changes</Text>
<Text style={styles.sectionDescription}>
<ReloadInstructions />
</Text>
</View>
<View style={styles.sectionContainer}>
<Text style={styles.sectionTitle}>Debug</Text>
<Text style={styles.sectionDescription}>
<DebugInstructions />
</Text>
</View>
<View style={styles.sectionContainer}>
<Text style={styles.sectionTitle}>Learn More</Text>
<Text style={styles.sectionDescription}>
Read the docs to discover what to do next:
</Text>
</View>
<LearnMoreLinks />
</View>
</ScrollView>
</SafeAreaView>
</>
);
};

const styles = StyleSheet.create({
scrollView: {
backgroundColor: Colors.lighter,
},
engine: {
position: 'absolute',
right: 0,
},
body: {
backgroundColor: Colors.white,
},
sectionContainer: {
marginTop: 32,
paddingHorizontal: 24,
},
sectionTitle: {
fontSize: 24,
fontWeight: '600',
color: Colors.black,
},
sectionDescription: {
marginTop: 8,
fontSize: 18,
fontWeight: '400',
color: Colors.dark,
},
highlight: {
fontWeight: '700',
},
footer: {
color: Colors.dark,
fontSize: 12,
fontWeight: '600',
padding: 4,
paddingRight: 12,
textAlign: 'right',
},
});

export default App;
Binary file added assets/fonts/AbrilFatface-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/BalsamiqSans-Bold.ttf
Binary file not shown.
Binary file added assets/fonts/Roboto-Black.ttf
Binary file not shown.
Binary file added assets/fonts/SpaceMono-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/elephnt.ttf
Binary file not shown.
62 changes: 41 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,49 @@
{
"name": "testApp",
"version": "0.0.1",
"private": true,
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest",
"lint": "eslint ."
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject",
"test": "jest --watchAll"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
"react": "16.9.0",
"react-native": "0.61.5"
"@expo/vector-icons": "~10.0.6",
"@react-native-community/masked-view": "0.1.6",
"@react-navigation/bottom-tabs": "^5.3.1",
"@react-navigation/native": "^5.2.1",
"@react-navigation/stack": "^5.2.16",
"expo": "^37.0.12",
"expo-asset": "~8.1.0",
"expo-constants": "~9.0.0",
"expo-font": "~8.1.0",
"expo-linking": "^1.0.1",
"expo-splash-screen": "^0.2.3",
"expo-web-browser": "~8.2.0",
"firebase": "^7.14.5",
"formik": "^2.1.4",
"nodemailer": "^6.4.6",
"react": "~16.9.0",
"react-dom": "~16.9.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-37.0.1.tar.gz",
"react-native-elements": "^2.0.0",
"react-native-email": "^1.1.0",
"react-native-gesture-handler": "~1.6.0",
"react-native-keyboard-aware-scroll-view": "^0.9.1",
"react-native-masked-text": "^1.13.0",
"react-native-safe-area-context": "0.7.3",
"react-native-screens": "~2.2.0",
"react-native-web": "~0.11.7",
"tcomb-form-native": "^0.6.20"
},
"devDependencies": {
"@babel/core": "^7.6.2",
"@babel/runtime": "^7.6.2",
"@react-native-community/eslint-config": "^0.0.5",
"babel-jest": "^24.9.0",
"eslint": "^6.5.1",
"jest": "^24.9.0",
"metro-react-native-babel-preset": "^0.56.0",
"react-test-renderer": "16.9.0"
"@babel/core": "^7.8.6",
"babel-preset-expo": "~8.1.0",
"jest-expo": "~37.0.0"
},
"jest": {
"preset": "react-native"
}
"private": true
}
Loading