Closed nycoliver closed 8 years ago
usually ur react module should be installed using NPM, so ur module should be located inside UrAPP/node_modules/react-native-ur-module and srcroot is the path of UrAPP/node_modules/react-native-ur-module/ios that will look for react and react native headers and libs so u need config correctly that path if u put ur module inside node_modules during ur development so u need to do 2 folders back that is ../.. than enter /react-native/react and /react-native so in sum up it is $(SRCROOT)/../../node_modules/react-native (recursive) $(SRCROOT)/../../node_modules/react-native/react (recursive)
but if u put ur module outside of node_modules u can just give real paths untill u publish ur app with npm for public usuage
u can just give full paths from main root / till
/UrAPP/node_modules/react-native (recursive) /UrAPP/node_modules/react-native/react (recursive)
Makes sense, thank you!
Hi, I couldn't get this to work without running
npm install react-native
and adding$(SRCROOT)/../node_modules/react-native/React
to the xcode project header search paths.I feel like I'm missing something obvious... any guidance? Btw thanks for the awesome tool!