From 48ffb6eb923423fa144d77574592850d4f5efaa4 Mon Sep 17 00:00:00 2001 From: Sanjay Guruprasad Date: Mon, 10 Aug 2020 05:40:23 -0700 Subject: [PATCH] update readme: add point about accessing variables in info.plist (#480) * update readme: explain accessing env variables in info.plist * Update readme: add link to issue about info.plist --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 688b7fc..440d6eb 100644 --- a/README.md +++ b/README.md @@ -187,6 +187,8 @@ ios/tmp.xcconfig "${SRCROOT}/../node_modules/react-native-config/ios/ReactNativeConfig/BuildXCConfig.rb" "${SRCROOT}/.." "${SRCROOT}/tmp.xcconfig" ``` +7. **Accessing your variable in info.plist**: You can now access your env variable using the prefix `RNC_`, for example `$(RNC_MY_ENV_VARIABLE)`. If you face issues accessing variables, please refer to [this issue](https://github.com/luggit/react-native-config/issues/391#issuecomment-632331803). + #### App Extensions Add dependency to `react-native-config`.