Skip to content

Instantly share code, notes, and snippets.

@hrdyjan1
Created April 16, 2025 15:13
Show Gist options
  • Select an option

  • Save hrdyjan1/7a9b4d7d4fc8d197d08a6fed04c7a58b to your computer and use it in GitHub Desktop.

Select an option

Save hrdyjan1/7a9b4d7d4fc8d197d08a6fed04c7a58b to your computer and use it in GitHub Desktop.
Example of app.config.ts wit different android packages.
import {ExpoConfig} from '@expo/config';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore:next-line
const IS_DEV = process.env?.ENVIRONMENT === 'development';
const IS_STAGING = process.env?.ENVIRONMENT === 'staging';
const config: ExpoConfig = {
...,
android: {
...,
package: IS_DEV
? 'com.app.dev'
: IS_STAGING
? 'com.app.staging'
: 'com.app.livepen',
...,
},
...,
};
export default config;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment