Comments (7)
@himanshu-satija, the two variables you use should be setup in your .env
file in the following way:
FACEBOOK_CUSTOM_URL_SCHEME=fb{your-app-id}
FACEBOOK_APP_ID={your-app-id}
FACEBOOK_DISPLAY_NAME={your-app-name}
Then, in the Info.plist
you have the following:
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>__RN_CONFIG_FACEBOOK_CUSTOM_URL_SCHEME</string>
</array>
</dict>
</array>
<key>FacebookAppID</key>
<string>__RN_CONFIG_FACEBOOK_APP_ID</string>
<key>FacebookDisplayName</key>
<string>__RN_CONFIG_FACEBOOK_DISPLAY_NAME</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fbapi</string>
<string>fb-messenger-api</string>
<string>fbauth2</string>
<string>fbshareextension</string>
</array>
<key>NSPhotoLibraryUsageDescription</key>
<string>{human-readable reason for photo access}</string>
from react-native-config.
I had to use the workaround I mentioned and have two variables.
from react-native-config.
@migueloller Thanks for your quick reply!
I just realized I hadn't linked the package 😅
So I removed my comment as soon as it hit me. Didn't check you had already replied.
from react-native-config.
@migueloller Did you get it to work?
from react-native-config.
Nice, this seems resolved by now?
Lemme know if there's anything still pending.
Thanks folks!
from react-native-config.
@migueloller Were you able to achieve this without an extra variable?
from react-native-config.
@hs-sundeep, unfortunately I wasn't able to do it using a single variable. I moved away from that RN project 2 years ago as well so I didn't have the time or motivation to pursue a more elegant solution.
from react-native-config.
Related Issues (20)
- How to import NSExceptionDomains as an environment variable?
- Variable are UNDEFINED on IOS HOT 14
- Could not find method android() for arguments [dotenv_4bgzrl46y7i0xnvnmgzr6qa4c$_run_closure1@3fa75e8b] on project ':app' of type org.gradle.api.Project.
- How to read config in Kotlin class in react native 0.73? HOT 1
- RNConfig Empty Android HOT 2
- MainApplication.kt:27:58 Type mismatch: inferred type is String but Boolean was expected HOT 1
- Not working on ReactNative 0.73 HOT 1
- Error retrieving namespace value from .env file during build process
- hey, did you find a way to make it work?
- Update the documentation HOT 3
- Issue with kotlin DSL
- ios undefined problem HOT 7
- [Question] - Is this lib abandoned?
- Compatibility of react-native-config with React Native 0.73+ HOT 1
- Visionos podspec misconfiguration resulting in build failure HOT 3
- App crashes on launch when using in `GoogleService-Info.plist` on iOS
- App crashes on android release build HOT 2
- [Question] Windows: Package.appxmanifest
- Build error on iOS app with react-native 0.73.6 HOT 1
- Update example react-native version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-config.