Getting an error like orientation.h file is not found, when i try to run it in xcode, please give me suggestion that how to solve this
same issue with [email protected]
don't know what caused the issue, but it appeared after upgrading to [email protected]
you can use:
#import "../../node_modules/react-native-orientation/iOS/RCTOrientation/Orientation.h"
as a temporary workaround.
libRCTOrientation.a can't be created..
For anyone still encountering this issue, I fixed it by manually linking the library. Step 3 was the step I overlooked.
http://facebook.github.io/react-native/docs/linking-libraries-ios.html#step-3
react-native link at the home directory of your project
Tried options suggested by, @tststs , @mjbader and @leechance.
@mjbader Can you let us know what is the exact path you entered in Xcode->Header path.
Mine is: $(SRCROOT)/node_modules/react-native-orientation/iOS/RCTOrientation/
@leechance link is already done.
But xCode still gives file not found error.
@jiteshwadia MY header search path is
$(SRCROOT)/../node_modules/react-native-orientation/iOS/RCTOrientation
Please follow updated README documentation on installing this package. If problems persist, create a new issue.
Most helpful comment
don't know what caused the issue, but it appeared after upgrading to
[email protected]you can use:
#import "../../node_modules/react-native-orientation/iOS/RCTOrientation/Orientation.h"as a temporary workaround.