Script that automagically adds needed Header Search Path entries for all dependencies in node_modules.
If you are using custom React Native modules you often need to set proper Header Search Path in XCode to successfully build the project. This node script makes it as easy as calling npm run fix-headers
.
npm install --save-dev react-native-fix-headers
- Add a
scripts
entry in yourpackage.json
like so:
"scripts": {
"fix-headers": "node `npm bin`/react-native-fix-headers"
},
npm run fix-headers
Any time you use this script you must smile at somebody around you 😊