react-native-fix-image
react-native-fix-image copied to clipboard
Run only on darwin env
Hi people,
Is there a way of executing the script only in darwin environment?
I'm trying to make a project work on Windows machine, but it is falling at this point (post-install):
> npx react-native-fix-image
'bash' is not recognized as an i
operable program or batch file.
As the lib was created to fix a problem for iOS devices, I believe running it on a Windows env makes no sense anyway.
Thanks!
For now, what I got working using run-script-os
package.json
"fixIOS14images": "run-script-os",
"fixIOS14images:macos": "npx react-native-fix-image",
"fixIOS14images:windows": "",
"postinstall": "fixIOS14images"