Skip to content

Component type of icon prop type support #20

@ngxiaoyi

Description

@ngxiaoyi

Hi there,

If this component plugin depends on the font - FontAwesome which comes from the repository : react-native-vector-icons. Why not support component type for the 'icon' prop directly?

eg:

import ItemCell from 'react-native-item-cell';
import Icon from 'react-native-vector-icons/FontAwesome';
<ItemCell
icon={<Icon name="rocket"/>}
>
Item
</ItemCell>

#just a feature wanted

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions