I am Using cocoapods to install react native and react. I just want to use a toast component(https://www.npmjs.com/package/react-native-simple-toast) which does ti have a cocoapods Installation. when i install and and run the app I am getting an error "" file not found error. I have added header search path but still getting this error. 1)error
2)react-native-simple-toast xcode project Header search path
3) Main project Header search path
Try the following solution-
#if __has_include("RCTDefines.h")
#import "RCTDefines.h"
#else
#import <React/RCTDefines.h>
#endif
this works for me.
Go to Project navigator > Libraries > RNFetchBlob.xcodeproj
Click on Build Settings and then the first item under "Targets"
Scroll down to 'Search Paths'
Double click to edit the 'Header Search Paths'
Add the following entry (click '+'): ${SRCROOT}/../../../ios/Pods/Headers.
Make sure to set it to recursive. (DOUBLE CLICK)
Clean (cmd + shift + K) and re-build (cmd + B)
https://github.com/joltup/rn-fetch-blob/issues/461#issuecomment-553355501
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With