/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React, { useEffect } from 'react';
import { colors } from './src/assets/styles/colors-theme';
import {
StyleSheet,
ScrollView,
View,
Text,
StatusBar,
TouchableOpacity,
} from 'react-native';
import SafeAreaView from 'react-native-safe-area-view';
import { Provider, inject, observer } from 'mobx-react';
import Store from './src/stores/index';
import { NavigationContainer, useFocusEffect } from '@react-navigation/native';
import { createStackNavigator, HeaderBackButton, CardStyleInterpolators } from '@react-navigation/stack';
import { createMaterialBottomTabNavigator } from '@react-navigation/material-bottom-tabs';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import {
Header,
LearnMoreLinks,
Colors,
DebugInstructions,
ReloadInstructions,
} from 'react-native/Libraries/NewAppScreen';
import MyTabBar from './MyTabBar';
import Icon from 'react-native-vector-icons/dist/MaterialCommunityIcons';
import SplashScreen from './src/pages/splash/splashScreen';
import Main from './src/pages/main/main';
import Category from './src/pages/category/category'
import Favourite from './src/pages/favorite/favorite'
import Cart from './src/pages/cart/cart'
import Setting from './src/pages/setting/setting'
import ProductsDetails from './src/pages/products/productsDetails'
import Login from './src/pages/login/login'
import ForgotPassword from './src/pages/login/forgotPassword'
import Signup from './src/pages/signup/signup'
import SignupSuccess from './src/pages/signup/signupSuccess'
import Profile from './src/pages/setting/profile'
import MyWallet from './src/pages/setting/myWallet'
import History from './src/pages/history/history'
import CategoryGrid from './src/pages/category/categoryGrid'
import Search from './src/pages/search/search'
import Test from './src/pages/main/test'
import Shipping from './src/pages/order/shipping'
import PaymentMethod from './src/pages/order/paymentMethod'
import ConfirmPayment from './src/pages/order/confirmPayment'
import OrderConfirmed from './src/pages/order/orderConfirmed'
import StripePayment from './src/pages/order/stripePayment'
import ShowQrcode from './src/pages/order/showQrcode'
import HistoryList from './src/pages/history/historyList'
import Redeem from './src/pages/redeem/redeem'
Icon.loadFont();
const Stack = createStackNavigator();
const BottomTab = createBottomTabNavigator();
const config = {
animation: 'mass',
config: {
stiffness: 1000,
damping: 500,
mass: 3,
overshootClamping: true,
restDisplacementThreshold: 0.01,
restSpeedThreshold: 0.01,
},
};
const Router = inject("appStore")(observer(class Router extends React.Component {
constructor(props) {
super(props);
this.store = props.appStore;
}
BottomTabScreen = () => {
return (
}>
{/* */}
);
};
render() {
return (
{!this.store.splash ? (
<>
>
) : (<>
>)}
);
}
}))
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 Router;