import {View, Text} from 'react-native';
import React, {useEffect} from 'react';
import {Provider} from 'react-redux';
import store from './src/store/store';
import Routes from './src/Routes/Routes';
import SplashScreen from 'react-native-splash-screen';
import { NativeBaseProvider } from 'native-base';


const App = () => {
  useEffect(() => {
    // setTimeout(() => {
    // }, 2000);
    SplashScreen.hide();
    // SplashScreen.hide();
  }, []);
  return (
    <Provider store={store}>
    <NativeBaseProvider>
      <Routes />
      </NativeBaseProvider>
    </Provider>
  );
};

export default App;
