You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.0 KiB

import { StyleSheet } from "react-native";
import { useFonts } from "expo-font";
import AppLoading from "expo-app-loading";
import Navigation from "./navigation/index";
3 years ago
import AlertModal from "./src/components/AlertModal";
import { Provider } from "react-redux";
2 years ago
import buildStore from "./src/redux/store";
import React from "react";
2 years ago
import { PersistGate } from "redux-persist/integration/react";
const { store, persistor } = buildStore();
3 years ago
const App = () => {
let [fontsLoaded] = useFonts({
light: require("./assets/fonts/Farsi/Light.ttf"),
regular: require("./assets/fonts/Farsi/Regular.ttf"),
bold: require("./assets/fonts/Farsi/Medium.ttf"),
demi: require("./assets/fonts/Farsi/DemiBold.ttf"),
});
if (!fontsLoaded) {
return <AppLoading />;
}
return (
3 years ago
<Provider store={store}>
2 years ago
<PersistGate loading={null} persistor={persistor}>
<Navigation />
<AlertModal />
</PersistGate>
3 years ago
</Provider>
);
3 years ago
};
3 years ago
const styles = StyleSheet.create({});
export default App;