Add dynamic builkd for rome/imex
This commit is contained in:
@@ -64,7 +64,7 @@ export default function GlobalSearch() {
|
||||
setError("No results available. Try again.");
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("Search error:", error);
|
||||
console.error("Search error:", error, error.response);
|
||||
setError(error.message);
|
||||
}
|
||||
setLoading(false);
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
import Constants from "expo-constants";
|
||||
import { Image } from "expo-image";
|
||||
import { Formik } from "formik";
|
||||
import React from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Image, StyleSheet, View } from "react-native";
|
||||
import { StyleSheet, View } from "react-native";
|
||||
import { Button, Text, TextInput } from "react-native-paper";
|
||||
import { connect } from "react-redux";
|
||||
import { createStructuredSelector } from "reselect";
|
||||
import { emailSignInStart } from "../../redux/user/user.actions";
|
||||
import SignInError from "./sign-in-error";
|
||||
|
||||
import {
|
||||
selectCurrentUser,
|
||||
selectSigningIn,
|
||||
selectCurrentUser,
|
||||
selectSigningIn,
|
||||
} from "../../redux/user/user.selectors";
|
||||
import SignInError from "./sign-in-error";
|
||||
//import SignInErrorAlertComponent from "../sign-in-error-alert/sign-in-error-alert.component";
|
||||
import Constants from "expo-constants";
|
||||
|
||||
const mapStateToProps = createStructuredSelector({
|
||||
currentUser: selectCurrentUser,
|
||||
@@ -38,9 +38,18 @@ export function SignIn({ emailSignInStart, signingIn }) {
|
||||
<View style={styles.imageContainer}>
|
||||
<Image
|
||||
style={styles.logo}
|
||||
source={require("@/assets/images/logo192.png")}
|
||||
contentFit="contain"
|
||||
source={
|
||||
Constants?.expoConfig?.extra?.appVariant === "ROME"
|
||||
? require("@/assets/images/RomeOnlineIcon.png")
|
||||
: require("@/assets/images/logo192.png")
|
||||
}
|
||||
/>
|
||||
<Text variant="headlineLarge">{t("app.title")}</Text>
|
||||
<Text variant="headlineLarge">
|
||||
{Constants?.expoConfig?.extra?.appVariant === "ROME"
|
||||
? t("app.title_rome")
|
||||
: t("app.title")}
|
||||
</Text>
|
||||
</View>
|
||||
|
||||
<Formik initialValues={{ email: "", password: "" }} onSubmit={formSubmit}>
|
||||
@@ -82,7 +91,7 @@ export function SignIn({ emailSignInStart, signingIn }) {
|
||||
|
||||
<Text style={styles.footer}>
|
||||
{t("settings.labels.version", {
|
||||
number: Constants.expoConfig.version,
|
||||
number: Constants.expoConfig?.version,
|
||||
})}
|
||||
</Text>
|
||||
</View>
|
||||
@@ -103,10 +112,7 @@ const styles = StyleSheet.create({
|
||||
justifyContent: "center",
|
||||
gap: 10,
|
||||
},
|
||||
logo: {
|
||||
maxWidth: "20%",
|
||||
resizeMode: "contain",
|
||||
},
|
||||
logo: { width: "100", height: "100" },
|
||||
formContainer: {
|
||||
display: "flex",
|
||||
width: "100%",
|
||||
|
||||
Reference in New Issue
Block a user