50 questions
1
vote
0
answers
25
views
react-native-config returns empty object on Android (RN 0.80.1, react-native-config 1.1.6)
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....
0
votes
0
answers
19
views
react-native-config iOS - `Config` is empty if no `.env` in project root despite extra steps is done (RNC 1.5.9)
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 ...
0
votes
0
answers
47
views
react-native-config: empty `Config` object in one of android build flavors used with --appIdSuffix (RN 0.75.5)
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 ...
0
votes
1
answer
409
views
React Native iOS build fails: No such module 'RNCConfig' in Swift AppDelegate.swift
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'
...
0
votes
3
answers
4k
views
react-native-config not working on android - RNCConfig Module tried to override RNCConfigModule
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 ...
0
votes
1
answer
351
views
Error after adding react-native config: Cannot use import statement outside a module
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';
...
-1
votes
1
answer
726
views
React Native Config error while creating Archive Build in IOS Xcode
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 ...
-1
votes
1
answer
677
views
High severity vulnerabilities intalling react-native-config
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 ...
0
votes
2
answers
518
views
AWS S3 Access and Secret Key management in React Native
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 ...
0
votes
4
answers
1k
views
react-native-config package Multiple Environments
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/...
4
votes
2
answers
6k
views
React Native: .env file values aren't being read with react-native-config
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 ...
1
vote
0
answers
92
views
Conditionally change envivornment variable after app is build in react native
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 ...
2
votes
0
answers
212
views
React Native & AWS Client STS
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 ...
1
vote
4
answers
3k
views
react-native-config lib returns empty Config object
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"
...
1
vote
0
answers
513
views
React Native: I have to clean build folder in XCode in order to get the values from my .env using react-native-config
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 ...