Commit 14eaaf87 authored by G.sandhya's avatar G.sandhya
Browse files

nigerian telemedicine app ui code

parent 50c34346
import React from "react";
import { YellowBox } from "react-native";
import { Font } from "expo";
import SplashScreen from "./src/screens/SplashScreen";
import Login from "./src/screens/Login";
import Register from "./src/screens/Register";
import Appointment from "./src/screens/Appointment";
import Success from "./src/screens/Success";
import { StackNavigator, DrawerNavigator } from "react-navigation";
const DrawerNavigation = DrawerNavigator({
SplashScreen: {
screen: SplashScreen
},
Login: {
screen: Login
},
Register: {
screen: Register
},
Appointment: {
screen: Appointment
},
Success: {
screen: Success
}
});
const StackNavigation = StackNavigator(
{
DrawerNavigation: {
screen: DrawerNavigation
},
SplashScreen: {
screen: SplashScreen
},
Login: {
screen: Login
},
Register: {
screen: Register
},
Appointment: {
screen: Appointment
},
Success: {
screen: Success
}
},
{
headerMode: "none"
}
);
export default class App extends React.Component {
constructor() {
super();
this.state = {
fontLoaded: false
};
YellowBox.ignoreWarnings([
"Warning: componentWillMount is deprecated",
"Warning: componentWillReceiveProps is deprecated",
"Warning: componentWillUpdate is deprecated"
]);
}
async componentDidMount() {
await Font.loadAsync({
Roboto: require("./src/assets/fonts/Arial.ttf") /*Fallback Font*/,
"AmericanTypewriter-CondensedBold": require("./src/assets/fonts/Arial.ttf") /*Fallback Font*/,
"Helvetica-Oblique": require("./src/assets/fonts/Arial.ttf") /*Fallback Font*/,
Tahoma: require("./src/assets/fonts/Tahoma.ttf")
});
this.setState({ fontLoaded: true });
console.warn("Fallback font is being used. Please check App.js file.");
}
render() {
return this.state.fontLoaded ? <StackNavigation /> : <Expo.AppLoading />;
}
}
{
"expo": {
"sdkVersion": "26.0.0"
}
}
../acorn/bin/acorn
\ No newline at end of file
../analytics-node/bin/analytics
\ No newline at end of file
../atob/bin/atob.js
\ No newline at end of file
../babylon/bin/babylon.js
\ No newline at end of file
../@expo/bunyan/bin/bunyan
\ No newline at end of file
../color-support/bin.js
\ No newline at end of file
../envinfo/src/cli.js
\ No newline at end of file
../escodegen/bin/escodegen.js
\ No newline at end of file
../escodegen/bin/esgenerate.js
\ No newline at end of file
../esprima/bin/esparse.js
\ No newline at end of file
../esprima/bin/esvalidate.js
\ No newline at end of file
../react-native-vector-icons/bin/fa5-upgrade.sh
\ No newline at end of file
../react-native-vector-icons/bin/generate-icon.js
\ No newline at end of file
../handlebars/bin/handlebars
\ No newline at end of file
../image-size/bin/image-size.js
\ No newline at end of file
../import-local/fixtures/cli.js
\ No newline at end of file
../is-ci/bin.js
\ No newline at end of file
../jest/bin/jest.js
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment