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.
|
|
|
import { AppRegistry, StyleSheet } from "react-native";
|
|
|
|
import { useFonts } from "expo-font";
|
|
|
|
import AppLoading from "expo-app-loading";
|
|
|
|
import Navigation from "./navigation/index";
|
|
|
|
import AlertModal from "./src/components/AlertModal";
|
|
|
|
import { Provider } from "react-redux";
|
|
|
|
import store from './src/redux/store';
|
|
|
|
|
|
|
|
|
|
|
|
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"),
|
|
|
|
});
|
|
|
|
|
|
|
|
if (!fontsLoaded) {
|
|
|
|
return <AppLoading />;
|
|
|
|
}
|
|
|
|
return (
|
|
|
|
<Provider store={store}>
|
|
|
|
<Navigation />
|
|
|
|
<AlertModal />
|
|
|
|
</Provider>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
const styles = StyleSheet.create({});
|
|
|
|
|
|
|
|
export default App;
|