Skip to content

Commit

Permalink
first verion of app
Browse files Browse the repository at this point in the history
  • Loading branch information
srivastava9 committed Dec 20, 2019
0 parents commit 2ec47e7
Show file tree
Hide file tree
Showing 17 changed files with 7,998 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
EXPO_DEBUG=TRUE
4 changes: 4 additions & 0 deletions .expo-shared/assets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"f9155ac790fd02fadcdeca367b02581c04a353aa6d5aa84409a59f6804c87acd": true,
"89ed26367cdb9b771858e026f2eb95bfdb90e5ae943e716575327ec325f39c44": true
}
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
node_modules/**/*
.expo/*
npm-debug.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
*.orig.*
web-build/
web-report/

# macOS
.DS_Store
117 changes: 117 additions & 0 deletions App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
import React, { Component } from "react";
import { StackNavigator } from "react-navigation";
import { createAppContainer } from "react-navigation";
import { createStackNavigator } from "react-navigation-stack";
import {
StyleSheet,
Text,
View,
Image,
Button,
TouchableOpacity
} from "react-native";
import signUp from "./pages/signup";
import Profile from "./pages/welcome";
import Consultform from "./pages/consult/consultform";
import Reviewconsult from "./pages/consult/reviewconsult";
import PatientList, {
PatientData,
OpenConsult
} from "./pages/Patient Data/datalist";

// import navigator from "./navigator.js";
class HomeScreen extends Component {
constructor(props) {
super(props);
this.state = {};
}
goSignup = () => {
this.props.navigation.navigate("Sign");
};
render() {
return (
<View style={styles.container}>
<Image
style={{ width: 400, height: 200 }}
source={{
uri:
"https://images.unsplash.com/photo-1532938911079-1b06ac7ceec7?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1189&q=80"
}}
/>
<Text style={styles.text}>Welcome To App </Text>
<TouchableOpacity style={styles.button}>
<Button
title="Let's Start"
onPress={this.goSignup}
color="#9FC131"
></Button>
</TouchableOpacity>
</View>
);
}
}

const AppNavigator = createStackNavigator(
{
Home: HomeScreen,
Sign: signUp,
Welcome: Profile,
Consultform: Consultform,
Reviewconsult: Reviewconsult,
Success: SuccessMessage,
PatientList: PatientList,
PatientData: PatientData,
OpenConsult: OpenConsult
},
{
initialRouteName: "Home"
}
);

export default createAppContainer(AppNavigator);
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center"
},
text: {
fontSize: 22,
fontFamily: "Roboto",
marginTop: 50,
marginBottom: 40
},
button: {
width: 200,
height: 50
},
popup: {
alignItems: "center",
position: "absolute",
paddingTop: 15,
top: 180,
zIndex: 10,
left: 30,
height: 200,
width: 330,
borderRadius: 20,
shadowRadius: 60,
shadowColor: "#d1d1d1",
backgroundColor: "#fff"
}
});
export function SuccessMessage(props) {
return (
<View style={styles.popup}>
<Text>Your Consultation Has been Sent To Patient !</Text>
<Button
color="#9FC131"
onPress={() => {
props.navigation.navigate("Welcome");
}}
title="Close"
/>
</View>
);
}
30 changes: 30 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"expo": {
"name": "AwesomeAdi",
"slug": "AwesomeProject",
"privacy": "public",
"sdkVersion": "36.0.0",
"platforms": [
"ios",
"android",
"web"
],
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true
}
}
}
Binary file added assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = function(api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
};
};
Loading

0 comments on commit 2ec47e7

Please sign in to comment.