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
This commit is contained in:
Sanjay Guruprasad 2020-08-10 05:40:23 -07:00 committed by GitHub
parent 3ed79e4bb6
commit 48ffb6eb92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,6 +187,8 @@ ios/tmp.xcconfig
"${SRCROOT}/../node_modules/react-native-config/ios/ReactNativeConfig/BuildXCConfig.rb" "${SRCROOT}/.." "${SRCROOT}/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 #### App Extensions
Add dependency to `react-native-config`. Add dependency to `react-native-config`.