126 lines
4.2 KiB
TypeScript
Executable file
126 lines
4.2 KiB
TypeScript
Executable file
import Constants from "expo-constants";
|
|
import { Platform } from "react-native";
|
|
import RolesDropdown from "./src/roles-dropdown";
|
|
import { StorageService } from "./src/services/StorageService";
|
|
import {
|
|
ROLE_NAMES,
|
|
ROLE_DISPLAY_NAMES,
|
|
ROLE_OPTIONS,
|
|
BUSINESS_ROLE_OPTIONS,
|
|
} from "./src/lib/constants";
|
|
import { REFUND_STATUS } from "./src/lib/const-strs";
|
|
import { colors, colorsType } from "./src/lib/theme-colors";
|
|
import { theme } from "./src/theme";
|
|
import MyButton, { MyTextButton } from "./src/components/button";
|
|
import { useTheme, Theme } from "./hooks/theme-context";
|
|
import MyTextInput from "./src/components/textinput";
|
|
import BottomDialog, { ConfirmationDialog } from "./src/components/dialog";
|
|
import LoadingDialog from "./src/components/loading-dialog";
|
|
import DatePicker from "./src/components/date-picker";
|
|
import MyText from "./src/components/text";
|
|
import MyTouchableOpacity from "./src/components/touchable-opacity";
|
|
import BottomDropdown from "./src/components/bottom-dropdown";
|
|
import ImageViewerURI from "./src/components/image-viewer";
|
|
import ImageCarousel from "./src/components/ImageCarousel";
|
|
import ImageGallery from "./src/components/ImageGallery";
|
|
import ImageGalleryWithDelete from "./src/components/ImageGalleryWithDelete";
|
|
import ImageUploader from "./src/components/ImageUploader";
|
|
import ProfileImage from "./src/components/profile-image";
|
|
import Checkbox from "./src/components/checkbox";
|
|
import AppContainer from "./src/components/app-container";
|
|
import tw from "./src/lib/tailwind";
|
|
import SearchBar from "./src/components/search-bar";
|
|
import DataTable from "./src/components/data-table";
|
|
import Quantifier from "./src/components/quantifier";
|
|
import MiniQuantifier from "./src/components/mini-quantifier";
|
|
import TabViewWrapper from "./src/components/tab-view";
|
|
import MyFlatList from "./src/components/flat-list";
|
|
import useFocusCallback from "./hooks/useFocusCallback";
|
|
import useManualRefresh from "./hooks/useManualRefresh";
|
|
import { useDrawerTitle } from "./hooks/useDrawerTitle";
|
|
import { useMarkDataFetchers } from "./hooks/useMarkDataFetchers";
|
|
import { useIsDevMode } from "./hooks/useIsDevMode";
|
|
import { usePagination } from "./hooks/usePagination";
|
|
import { StorageServiceCasual } from "./src/services/StorageServiceCasual";
|
|
import DateTimePickerMod from "./src/components/date-time-picker";
|
|
import { RefreshProvider, useRefresh } from "./src/lib/refresh-context";
|
|
import MyStatusBar from "./src/components/MyStatusBar";
|
|
import { updateStatusBarColor, useStatusBarStore } from "./src/lib/status-bar-store";
|
|
|
|
const isDevMode = Constants.executionEnvironment !== "standalone";
|
|
// const localhost =
|
|
// Platform.OS === "android"
|
|
// ? "http://10.0.2.2:4000" // Android emulator
|
|
// : "http://localhost:4000"; // iOS simulator / web dev
|
|
|
|
// const production = "https://technocracy.ovh/mf";
|
|
// // const production = "http://10.0.2.2:4000";
|
|
// // const production = "http://192.168.1.3:4000";
|
|
|
|
// const API_URL =
|
|
// Constants.executionEnvironment === "standalone" ? production : localhost;
|
|
|
|
// const BASE_API_URL = API_URL;
|
|
// const BASE_API_URL = 'http://10.0.2.2:4000';
|
|
// const BASE_API_URL = 'http://192.168.100.101:4000';
|
|
// const BASE_API_URL = 'http://192.168.1.14:4000';
|
|
let BASE_API_URL = "https://mf.freshyo.in";
|
|
// let BASE_API_URL = 'http://192.168.100.103:4000';
|
|
// let BASE_API_URL = 'http://192.168.29.219:4000';
|
|
|
|
// if(isDevMode) {
|
|
// }
|
|
|
|
export {
|
|
RolesDropdown,
|
|
StorageService,
|
|
ROLE_NAMES,
|
|
ROLE_DISPLAY_NAMES,
|
|
ROLE_OPTIONS,
|
|
BUSINESS_ROLE_OPTIONS,
|
|
colors,
|
|
colorsType,
|
|
theme,
|
|
MyButton,
|
|
MyTextButton,
|
|
useTheme,
|
|
Theme,
|
|
MyTextInput,
|
|
BottomDialog,
|
|
LoadingDialog,
|
|
MyText,
|
|
MyTouchableOpacity,
|
|
ConfirmationDialog,
|
|
DatePicker,
|
|
BottomDropdown,
|
|
ImageViewerURI,
|
|
ImageCarousel,
|
|
ImageGallery,
|
|
ImageGalleryWithDelete,
|
|
ImageUploader,
|
|
ProfileImage,
|
|
Checkbox,
|
|
AppContainer,
|
|
tw,
|
|
SearchBar,
|
|
DataTable,
|
|
Quantifier,
|
|
MiniQuantifier,
|
|
TabViewWrapper,
|
|
MyFlatList,
|
|
useFocusCallback,
|
|
useManualRefresh,
|
|
useDrawerTitle,
|
|
BASE_API_URL,
|
|
useMarkDataFetchers,
|
|
StorageServiceCasual,
|
|
useIsDevMode,
|
|
usePagination,
|
|
REFUND_STATUS,
|
|
DateTimePickerMod,
|
|
RefreshProvider,
|
|
useRefresh,
|
|
MyStatusBar,
|
|
updateStatusBarColor,
|
|
useStatusBarStore,
|
|
};
|