Closed MossP closed 9 years ago
I think you'll have to upgrade RN to 0.5.0
On Wed, Jun 10, 2015 at 6:42 AM, Moss Palmer notifications@github.com wrote:
Thanks for the plugin. Potentially a great help :) However, I have successfully added the icons to a custom tab bar but attempting to use an icon in a regular view causes this error. Any ideas?
Invariant Violation: Expected a component class, got undefined. <unknown> ReactNativeDefaultInjection.js:101 getComponentClassForElement ReactNativeComponent.js:59
React-Native v0.4.4
React-Native-Icons v0.0.9
Reply to this email directly or view it on GitHub: https://github.com/corymsmith/react-native-icons/issues/48
Thanks for getting back to me, I've just found out what it was. I had "Icon" in my destructuring declaration e.g.
var {
blah,
blah,
blah,
Icon
} = React;
Thanks for the plugin. Potentially a great help :) However, I have successfully added the icons to a custom tab bar but attempting to use an icon in a regular view causes this error. Any ideas?
React-Native v0.4.4 React-Native-Icons v0.0.9