Closed bartonhammond closed 8 years ago
Same thing happens to me.
I got the same error!
Select "RCTToast.xcodeproj", Project "RCTToast", Build Settings, then find "Search Paths", "Header Search Paths", change this line:
$(SRCROOT)/../../../react-native/React
to:
$(SRCROOT)/../../react-native/React
use npm install @remobile/react-native-toast --save please
Just Link the library with the React Link http://facebook.github.io/react-native/docs/linking-libraries-ios.html#automatic-linking
I got this error too at first, then I read @fov42550564 comment. For me this was a result of not following instructions. I did npm install react-native-toast and it worked on android but not ios. I uninstalled my previous version and did 'npm install @remobile/react-native-toast --save' and followed the rest of the instructions. Then I had a small issue with my code not finding react-native-toast anywhere but its easily fixed by copying the folder inside the node_modules/@remobile folder into the root /node_modules folder
Delete the node_modules folder and then install the packages back. For your easy reference, just run "rm -rf node_modules" and then "npm i". This worked for me as a charm.
as @lifuzu sayed, then rm -rf ./build file,and react-native run-ios,it works!