react-native-svg: React/UIView+React.h file not found
Installed latest version using yarn add react-native-svg. Using React v15.3.1 and RN v0.39.2.
Ran react-native link react-native-svg and everything seemed to be working.
When building in XCode I’m getting the following error:
Lexical or Preprocessor Issue: React/UIView+React.h file not found
I checked and libRNSVG.a is in Link Binary With Libraries
Any ideas what i’m doing wrong? Thanks
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 17
- Comments: 40
my version is correct, but had same problem. and I solve this by:
Using react-native-svg@4.4.1 worked for me (with RN@0.39.2)
@superstarwulin
react-native-svg >= 4.5.0 only supports react-native >= 0.40.0 and react >= 15.4.0You can upgrade react-native to 0.40.0 or downgrade react-native-svg.After upgrading react-native@0.40.0 and react-native-svg>=4.5.0 try: Clean XCode project and run
FYI upgrading
react-nativeto0.55.4fixed the header issue but crashing at runtime.@maxkomarychev will try that from a fresh CRNA project
same here:
when pod install, throw error
anyone help me?? thanks!!!