Reputation: 101
I am working on a react-native project. I included a module called react-native-vector-icons
. Initially it does not give me any error and works fine. But now, i got an error like:
RNVectorIconsManager.m:95:37: error: too many arguments to block call, expected 1, have 3".Also,"reject(@"font_load_failed", @"Font failed to load", error);
Anyone, please please help as I am stuck with this problem. If I update the podfile
, i got a warning like React
has been deprecated. Maybe this is the problem.
Upvotes: 2
Views: 2332
Reputation: 344
I removed pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons but not works.
I changed reject(@"font_load_failed", @"Font failed to load", error); to reject(error);
Upvotes: 0
Reputation: 9196
I have resolved it with option: react-native link
react-native link react-native-vector-icons
method instead of CocoaPods, try to remove
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
From your podfile in ios/Podfile
And recompile your project
Upvotes: 3