import AppNavigation from "@/navigation/AppNavigation"; import { store } from "@/store"; import React, { FC } from "react"; import { Platform, StatusBar, StyleSheet, Text, View } from "react-native"; import ErrorBoundary from "react-native-error-boundary"; import { Provider } from "react-redux"; import { persistStore } from "redux-persist"; import { PersistGate } from "redux-persist/integration/react"; import "react-native-reanimated"; import "react-native-gesture-handler"; const persistedStore = persistStore(store); const ErrorFallback = (props: { error: { toString: () => | string | number | boolean | React.ReactElement> | React.ReactFragment | React.ReactPortal | null | undefined; }; }) => ( Something happened! {props.error.toString()} ); const App: FC = () => { return ( ); }; export default App; const statusBarHeight = Platform.OS === "android" ? StatusBar.currentHeight : 64; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: "center", alignItems: "center", paddingTop: statusBarHeight, backgroundColor: "#2b3139", padding: 8, textAlign: "center", }, title: { fontSize: 18, fontWeight: "bold", textAlign: "center", color: "#fff", }, text: { marginVertical: 16, color: "#FFF", }, });