Skip to content

Commit

Permalink
fix: fix splash screen background color
Browse files Browse the repository at this point in the history
  • Loading branch information
yjose committed Oct 26, 2023
1 parent 2050998 commit d4272f1
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 9 deletions.
1 change: 0 additions & 1 deletion .env.development
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
API_URL=https://dummyjson.com/
EAS_PROJECT_ID=

## TOTO: add the variable to your CI and remove it from here, not recommended setting sensitive values on your git repo
SECRET_KEY=my-secret-key
1 change: 0 additions & 1 deletion .env.production
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
API_URL=https://dummyjson.com/
EAS_PROJECT_ID=

## TOTO: add the variable to your CI and remove it from here, not recommended setting sensitive values on your git repo
SECRET_KEY=my-secret-key
1 change: 0 additions & 1 deletion .env.staging
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
API_URL=https://dummyjson.com/
EAS_PROJECT_ID=c3e1075b-6fe7-4686-aa49-35b46a229044

## TOTO: add the variable to your CI and remove it from here, not recommended setting sensitive values on your git repo
SECRET_KEY=my-secret-key
2 changes: 0 additions & 2 deletions README-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ Mobile App </h1>

> This Project is based on [Obytes starter](https://starter.obytes.com)
## 🔗 Requirements

## Requirements

- [React Native dev environment ](https://reactnative.dev/docs/environment-setup)
Expand Down
6 changes: 3 additions & 3 deletions app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
splash: {
image: './assets/splash.png',
resizeMode: 'cover',
backgroundColor: '#2A3D4C',
backgroundColor: '#2E3C4B',
},
updates: {
fallbackToCacheTimeout: 0,
Expand All @@ -30,7 +30,7 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
android: {
adaptiveIcon: {
foregroundImage: './assets/adaptive-icon.png',
backgroundColor: '#2A3D4C',
backgroundColor: '#2E3C4B',
},
package: Env.PACKAGE,
},
Expand All @@ -51,7 +51,7 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
[
'app-icon-badge',
{
enabled: true,
enabled: Env.APP_ENV !== 'production',
badges: [
{
text: Env.APP_ENV,
Expand Down
3 changes: 2 additions & 1 deletion env.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const BUNDLE_ID = 'com.obytes'; // ios bundle id
const PACKAGE = 'com.obytes'; // android package name
const NAME = 'ObytesApp'; // app name
const EXPO_ACCOUNT_OWNER = 'obytes'; // expo account owner
const EAS_PROJECT_ID = 'c3e1075b-6fe7-4686-aa49-35b46a229044'; // eas project id

/**
* We declare a function withEnvSuffix that will add a suffix to the variable name based on the APP_ENV
Expand Down Expand Up @@ -102,7 +103,7 @@ const _clientEnv = {
*/
const _buildTimeEnv = {
EXPO_ACCOUNT_OWNER,
EAS_PROJECT_ID: process.env.EAS_PROJECT_ID,
EAS_PROJECT_ID,
// ADD YOUR ENV VARS HERE TOO
SECRET_KEY: process.env.SECRET_KEY,
};
Expand Down

0 comments on commit d4272f1

Please sign in to comment.