Created
April 16, 2025 15:13
-
-
Save hrdyjan1/7a9b4d7d4fc8d197d08a6fed04c7a58b to your computer and use it in GitHub Desktop.
Example of app.config.ts wit different android packages.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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