|
| 1 | +//import liraries |
| 2 | +import React, { Component } from 'react'; |
| 3 | +import { View, StyleSheet, Text, Image } from 'react-native'; |
| 4 | +import SplashScreen from 'react-native-splash-screen'; |
| 5 | +import BigCard from './app/components/BigCard'; |
| 6 | + |
| 7 | +import CustomText from './app/components/CustomText' |
| 8 | +import DetailCard from './app/components/DetailCard'; |
| 9 | +import HorizontalList from './app/components/HorizontalList'; |
| 10 | +import ImageText from './app/components/ImageText'; |
| 11 | +import PreparationCard from './app/components/PreparationCard'; |
| 12 | +import SmallCard from './app/components/SmallCard'; |
| 13 | +import TopButton from './app/components/TopButton'; |
| 14 | +import DetailScreen from './app/screens/DetailScreen'; |
| 15 | +import Home from './app/screens/Home'; |
| 16 | +import {NavigationContainer} from '@react-navigation/native' |
| 17 | +import AppNavigator from './app/navigation/AppNavigator'; |
| 18 | +import CustomProgressBar from './app/components/CustomProgressBar'; |
| 19 | +import CustomProgressBar2 from './app/components/CustomProgressBar2'; |
| 20 | +import TopBar from './app/components/TopBar'; |
| 21 | + |
| 22 | +// create a component |
| 23 | +class App extends Component { |
| 24 | + |
| 25 | + componentDidMount(){ |
| 26 | + SplashScreen.hide() |
| 27 | + } |
| 28 | + render() { |
| 29 | + return ( |
| 30 | + // <View style={styles.container}> |
| 31 | + // {/* <SmallCard/> */} |
| 32 | + // {/* <BigCard/> */} |
| 33 | + // {/* <HorizontalList/> */} |
| 34 | + // {/* <PreparationCard/> */} |
| 35 | + // {/* <DetailCard title="Ingredients" style={{backgroundColor:"white"}} maxLines={8}/> |
| 36 | + // <DetailCard title="Instructions" style={{backgroundColor:"#F6DEDE"}} maxLines={12}/> */} |
| 37 | + // {/* <TopButton imageName="arrow-back"/> |
| 38 | + // <TopButton imageName="favorite-border"/> |
| 39 | + // <TopButton imageName="favorite"/> */} |
| 40 | + // {/* <Home/> */} |
| 41 | + // {/* <DetailScreen/> */} |
| 42 | + |
| 43 | + // </View> |
| 44 | + <NavigationContainer> |
| 45 | + <AppNavigator/> |
| 46 | + </NavigationContainer> |
| 47 | + // <CustomProgressBar2 visibilty={true}/> |
| 48 | + //<TopBar/> |
| 49 | + |
| 50 | + ); |
| 51 | + } |
| 52 | +} |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | +//make this component available to the app |
| 57 | +export default App; |
0 commit comments