Final touches.

This commit is contained in:
Patrick Fic
2021-12-30 16:22:01 -08:00
parent 8da68c3229
commit a0edcca07b
2 changed files with 4 additions and 3 deletions

View File

@@ -13,6 +13,7 @@ import {
} from "../../redux/user/user.selectors"; } from "../../redux/user/user.selectors";
import SignInErrorAlertComponent from "../sign-in-error-alert/sign-in-error-alert.component"; import SignInErrorAlertComponent from "../sign-in-error-alert/sign-in-error-alert.component";
import Constants from "expo-constants"; import Constants from "expo-constants";
import * as Updates from "expo-updates";
const mapStateToProps = createStructuredSelector({ const mapStateToProps = createStructuredSelector({
currentUser: selectCurrentUser, currentUser: selectCurrentUser,
@@ -77,8 +78,8 @@ export function SignIn({ emailSignInStart, signingIn }) {
<Text> <Text>
{t("settings.labels.version", { {t("settings.labels.version", {
number: Constants.manifest.version, number: Constants.manifest.version,
})}{" "} })}
{process.env.NODE_ENV || ""} {`${process.env.NODE_ENV || ""} ${Updates.releaseChannel || ""}`}
</Text> </Text>
</View> </View>
)} )}

2
env.js
View File

@@ -56,7 +56,7 @@ function getEnvVars() {
if (releaseChannel.indexOf("development") !== -1) return ENV.test; if (releaseChannel.indexOf("development") !== -1) return ENV.test;
if (releaseChannel.indexOf("test") !== -1) return ENV.test; if (releaseChannel.indexOf("test") !== -1) return ENV.test;
if (releaseChannel.indexOf("default") !== -1) return ENV.prod; if (releaseChannel.indexOf("default") !== -1) return ENV.test;
else return ENV.prod; else return ENV.prod;
} }