Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
24 views

I am new to React Native. I’m using react-native-config in a React Native CLI project (not Expo), and it works correctly on iOS but returns an empty object on Android. Environment: react-native: 0.80....
Pratik's user avatar
  • 4,910
0 votes
0 answers
19 views

My RN app have two targets - production and staging, each of them have release and debug configurations. When I have .env file in project root where .env.production and .env.staging are stored, my App ...
CodeBy's user avatar
  • 772
0 votes
0 answers
47 views

I've created two build flavors to have two builds of my react native application. While I run production flavor in debug mode, Config object is populated with correct values, while Config object is ...
CodeBy's user avatar
  • 772
0 votes
1 answer
409 views

I'm upgrading my React Native project from version 0.73.6 to 0.77.2. After completing the upgrade, my iOS build fails with the following error in AppDelegate.swift: No such module 'RNCConfig' ...
Waseem Kurne's user avatar
  • 1,876
0 votes
3 answers
4k views

I followed the instructions on the react-native-config package but Im getting the following error: Native module RNCConfig Module tried to override RNCConfigModule. Check the getPackages() method in ...
Ian's user avatar
  • 2,810
0 votes
1 answer
351 views

While developing a React-native app I was using process.env to check whether my app was in production or development in my app.config.ts : import { ExpoConfig, ConfigContext } from 'expo/config'; ...
Kondor Kondorowski's user avatar
-1 votes
1 answer
725 views

I have a react native named MyApp and it is two app sides managed in single codebase.The app is managed by react native config during its build the config is set to that specific environment like env1 ...
Shubham More's user avatar
-1 votes
1 answer
677 views

When I try to install react-native-config in my react native project on ios I always get the same output: 141 packages are looking for funding run `npm fund` for details 5 high severity ...
Lluís Rodríguez's user avatar
0 votes
2 answers
518 views

I want to store my aws s3 access key and secret key in my react native app. I am storing it in env file and using it via react-native-config. But i received a mail from play console saying the key is ...
Rijan s's user avatar
0 votes
4 answers
1k views

I am developing app with "react-native" and "react-native-config package". I have installed "react-native-config" according to the manual. (https://www.npmjs.com/package/...
Koreahn's user avatar
  • 129
4 votes
2 answers
6k views

I'm rebuilding my Expo app in pure React Native and trying to figure out the environment variable situation. I'm trying out react-native-config, currently on "^1.5.1". I installed using yarn ...
Allen Y's user avatar
  • 720
1 vote
0 answers
92 views

I have configured react-native-config in my app, made two envs file i.e env.dev & env.prod. Now everything is working as per configuration. But now I want to change env to dev or prod depending on ...
jksq's user avatar
  • 55
2 votes
0 answers
212 views

I am trying to get cross account credentials for AWS Client Secret Manager by calling main function in the file. I am getting an error saying Error: Credentials Missing I tried everything, except for ...
Nata Vacheishvili's user avatar
1 vote
4 answers
3k views

I am having trouble using react-native-config in my React Native app. Here's my code: app.js import Config from 'react-native-config'; console.log(Config); .env SECRET_KEY="kndlknv94ii4rpp" ...
user21604832's user avatar
1 vote
0 answers
513 views

Why do I have to clean my build folder in XCode to see the new env values in my app? If I run an env script and then a different env script it will show the values of the previous env file. e.g if i ...
jrs's user avatar
  • 175
-1 votes
2 answers
2k views

I want to fetch API from my 'https://localhost:7262/api' address, but that is giving Network Error. I want to do GET request and then i am going to do POST request. Also my API server is always open ...
Ahmed Tayyib Kaya's user avatar
2 votes
2 answers
8k views

I'm really struggling with what seems like a very primitive error. I have installed react-native-config and when console.logging the Config object it returns {}. The problem occurs both on android and ...
Liam Clark Gutiérrez's user avatar
1 vote
0 answers
801 views

My react-native-config isn't picking up changes in my .env Only when I uninstall and then reinstall does react-native-config pick up the changes in my .env file.
derekbailinkedin's user avatar
1 vote
1 answer
334 views

I get this error when I run pod install: The `react-native-config` pod failed to validate due to 1 error: - ERROR | script_phases: Unrecognized option(s) `alwaysOutOfDate` in script phase `Config ...
QuentinNpApnl's user avatar
0 votes
1 answer
2k views

I have configured ENVs using react-native-config package. I have 3 different ENVs which I have defined in app/build.gradle This is defined as below - project.ext.envConfigFiles = [ debug: "....
Anuj Raghuvanshi's user avatar
0 votes
0 answers
834 views

I have created .env file in react native and from native side i'm able access the BuildConfig.KEY_NAME in MainApplication.java file But security team hS decompiled the app/APK using MobSF and can able ...
Mallikarjun Hampannavar's user avatar
1 vote
1 answer
3k views

I am trying to get flavors or build variants running in android for my react-native project. Via Schemes I got the same running on iOS, but Android does not want to follow. I guess something I am ...
Fapi's user avatar
  • 376
0 votes
1 answer
2k views

I have created a .env file and installed the "react-native-config " package, but the variable values are not displayed (on ios). Could you help me with this? Thanks terminal : LOG Running &...
phbord's user avatar
  • 1
2 votes
0 answers
2k views

According to the document of action environment_variable. I've tried to use it this way in my Fastfile but failed. environment_variable(set: { ENVFILE: ".env.dev" }) # failed I can not ...
ryn.xiao's user avatar
0 votes
1 answer
238 views

I'm using react-native-config in my ReactNative app. After upgrading react-native-config to 1.4.5 and React Native to 0.66.1, everything worked well, but app name in iOS showing as ...
Mohsen Zia's user avatar
0 votes
1 answer
788 views

Using RN 64.0 and fastlane, I have the following build command desc 'Build the Staging Android application.' lane :build_staging do gradle(task: 'clean', project_dir: 'android/') ...
Tzvetlin Velev's user avatar
1 vote
2 answers
1k views

I use react-native-config with XCode setting. I want to have three version are myapp Prod myapp.Dev Dev myapp.Qa Qa Here is my step: Adding new configurations Dev and Qa with XCode Adding new ...
Morton's user avatar
  • 5,792
1 vote
1 answer
580 views

I did as the document with .env file picker like this project.ext.envConfigFiles = [ debug : ".env", release : ".env.production", adhoc ...
Khoa Luu's user avatar
  • 135
2 votes
0 answers
410 views

Documentation contains example for android native usage only for .xml and java classes. I'm having file 'msal_config.json' located at android/app/src/main/assets folder. Is there any way for me to ...
Chewiex's user avatar
  • 741
0 votes
1 answer
1k views

I need to build the same app to different applicationIds so that I can publish it on the Play Store / App Store as private applications for some of the customers of my company. I decided to use react-...
balsick's user avatar
  • 1,211
1 vote
1 answer
376 views

I set a file .env.devdps APP_NAME=TestDps just use APP_NAME in AndroidManifest.xml <activity ... android:label="@string/APP_NAME" /> In my android/app/build.gradle defaultConfig {...
Morton's user avatar
  • 5,792
0 votes
0 answers
3k views

I've got a fresh React Native app, where I'm trying to use react-native-config: npx react-native init RNConfigDemo cd RNConfigDemo yarn add react-native-config echo "SOME_VAR="something&...
Nick Bull's user avatar
  • 9,956
0 votes
1 answer
2k views

I am trying to use the react-native-config with react-native configured with Swift. Following the usage guide, it tells me to import #import "ReactNativeConfig.h". I imported this inside of ...
Rogier de Ruijter's user avatar
18 votes
6 answers
36k views

I am trying to build my React Native project on Xcode and it is failing. The build target is react-native-config with the error: Run custom shell script '[CP-User] Config codegen' "Command ...
zosozo's user avatar
  • 463
1 vote
0 answers
213 views

Say I have a staging API url and a production API url. What is the best way to setup the app to use the production API url when I want to release a build to the stores and the staging API url when I ...
Hols's user avatar
  • 401
4 votes
0 answers
972 views

I use react-native-config for changing between production and development environments. I can switch environments dev/prod (bundler identifier, appIcon, splashScreeen, appName, ..) base on the scheme ...
Petrik-a-dost's user avatar
1 vote
0 answers
142 views

I've been using React Native for a little while now and I've always struggled with some of the gradle stuff for the Android side of things. Since 0.60.0 the iOS side has been great with using the pod ...
Matt Leach's user avatar
2 votes
1 answer
12k views

I have follow the doc: https://github.com/luggit/react-native-config#ios until: Availability in Build settings and Info.plist step 6. create new build phase for the scheme which will generate "...
phon sokserey's user avatar
3 votes
2 answers
5k views

I would like to pass environment variable when I run detox tests in my react-native app: "ios.sim.debug": { "binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/myapp.app", "build":...
GChevass's user avatar
  • 245
18 votes
3 answers
4k views

I started using MS appcenter in my bare react-native app, and during the set up they ask me to add two new files to the project: For IOS: AppCenter-Config.plist with <dict> <key>...
Victor's user avatar
  • 5,151
0 votes
1 answer
2k views

I'm having problems with react native config and AsyncStorage, where null data from .env is not readable on iOS, below is my code: _authAsync = async () => { const userToken = await ...
zidniryi's user avatar
  • 1,389
0 votes
1 answer
1k views

I am using PhpStorm and trying to automate the run with specific env variable. Managing .env variables for dev, staging, prod is very time saving and safe. So when I run set ENVFILE=.env.staging &&...
Razib Hossain Shuvo's user avatar
0 votes
1 answer
884 views

I am using react-native-config for setting environment variable in my react native project. I have a local image url in my .env config file. I am able to get the local image url in my component using ...
Praveen Ajayan's user avatar
0 votes
1 answer
1k views

I use from react-native-config in my project and my .env file exist in a sub folder rather than root path. In build.gradle file i have: project.env.get("APP_VERSION_CODE").toInteger() but when i run ...
hossein ketabi's user avatar
1 vote
2 answers
4k views

currently in my react-native app I configure two lanes using fastlane: beta and production. I'm using react-native-config for different environment configs (stored in 2 files: .env.beta and .env....
sonlexqt's user avatar
  • 6,539
1 vote
0 answers
349 views

I have an app that I created using create-react-native-app. I'm trying to use react-native-config to manage config variables that differ between dev and production. This requires the following steps, ...
Jim Greer's user avatar
  • 461
0 votes
1 answer
1k views

The build is failing after updating project to RN ^0.55.4 Seems like the problem is relating with the react-native-config dependency Android BuildVersion 23.0.1 The android bin is deprecated and we'...
Francis Batista's user avatar
0 votes
3 answers
6k views

I have react-native-config set up and use it in javascript no problem but am unable to use it like this in build.gradle. release { if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) { ...
acharlop's user avatar
  • 427
1 vote
2 answers
2k views

I am creating an app on react-native but views look different in both android and ios. Views are fine on android but on ios they look different. Can you look into sample component and let me know ...
Adnan Ali's user avatar
  • 2,980
0 votes
2 answers
430 views

My react native code was working fine till yesterday, but today while I was trying to compile the code I am getting this strange error. node /Users/aragorn/relay-react-native-app/node_modules/react-...
Harkirat Saluja's user avatar