Validate Environment Scripts
See original GitHub issueFor Discussion
Looking for contributors interested in making the React Native experience better for everyone. We currently have a script in the repo, scripts/validate-android-test-env.sh
, that will raise any issues with your local Android environment, such as a missing AVD configuration, or a lack of a proper Android SDK.
We do not have an equivalent for iOS development environments. A script could be used to:
- Validate the minimum required Xcode version is installed (people using Xcode 8 with a recent release may encounter cryptic build errors)
- Validate the correct Node version is installed (Node 10 is not fully supported at the time, Node 6 is no longer supported)
Furthermore, these scripts (iOS, Android) could be invoked as part of the react-native
CLI (if needed) in order to surface any issues as early as possible.
Please tag me in any PRs!
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Bash Cheatsheet: check if environment variables are set or file ...
Bash Cheatsheet: check if environment variables are set or file/symlinks exists + more. A bash scripting cheat sheet for developers who just ...
Read more >Checking if a Linux Environment Variable Is Set or Not
One of the common requirements in scripts is to test if a particular environment variable is set or not. This helps in handling...
Read more >A Lean Library to Validate Your Environment Variables ...
A library that will help you validate that the values in your environment are valid according to the comments in your .env.sample file....
Read more >How to check if an environment variable exists and get its value?
I am writing a shell script. In this shell script, I am have a variable that either takes a default value, or the...
Read more >Understanding validation in script tools—ArcGIS Pro
Validation means checking that all tool parameters are correct and providing useful messages if they are not. There are two parts to validation:...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@hramos please excuse my rusty bash but this should work.
The CLI has been moved out of the repo. Do you want to create a new issue in https://github.com/react-native-community/react-native-cli to discuss how this might be implemented in the new package?