Final touches.
This commit is contained in:
@@ -13,6 +13,7 @@ import {
|
||||
} from "../../redux/user/user.selectors";
|
||||
import SignInErrorAlertComponent from "../sign-in-error-alert/sign-in-error-alert.component";
|
||||
import Constants from "expo-constants";
|
||||
import * as Updates from "expo-updates";
|
||||
|
||||
const mapStateToProps = createStructuredSelector({
|
||||
currentUser: selectCurrentUser,
|
||||
@@ -77,8 +78,8 @@ export function SignIn({ emailSignInStart, signingIn }) {
|
||||
<Text>
|
||||
{t("settings.labels.version", {
|
||||
number: Constants.manifest.version,
|
||||
})}{" "}
|
||||
{process.env.NODE_ENV || ""}
|
||||
})}
|
||||
{`${process.env.NODE_ENV || ""} ${Updates.releaseChannel || ""}`}
|
||||
</Text>
|
||||
</View>
|
||||
)}
|
||||
|
||||
2
env.js
2
env.js
@@ -56,7 +56,7 @@ function getEnvVars() {
|
||||
if (releaseChannel.indexOf("development") !== -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user