React-native-ui-kitten: undefined is not an object stylesheet$flatten.height when adding icon

Created on 8 Mar 2020  路  1Comment  路  Source: akveo/react-native-ui-kitten

Now, this error is happening a lot of time now, and I am always looking for an alternative all the time.
When i import Icon from ui-kitten components, all the time it is throwing me this error.

And I just added the icon as given in the documentation.

Please have a look.

<Icon name="star" width={32} height={32} fill="#3366FF" />

Is there anything wrong in the way I do things here?

Help wanted

Most helpful comment

I guess this can be caused by recent updates of react-native-svg library.
Try <Icon style={{ width: 32, height: 32 }} fill='#3366FF' name='star' />

>All comments

I guess this can be caused by recent updates of react-native-svg library.
Try <Icon style={{ width: 32, height: 32 }} fill='#3366FF' name='star' />

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chamatt picture chamatt  路  3Comments

gimli01 picture gimli01  路  3Comments

sarmadkung picture sarmadkung  路  3Comments

jeloagnasin picture jeloagnasin  路  3Comments

nonameolsson picture nonameolsson  路  3Comments