Skip to content

run error: TabBarIOS.Item custom icon #12880

Closed
@hrscy

Description

@hrscy
<TabBarIOS tintColor='orange'>
                <TabBarIOS.Item
                    icon={require('image!tabbar_home')} // comment this line, run success
                    title="home"
                >
</TabBarIOS>

I put my images in the Images.xcassets file.

run error :
Unable to resolve module 'image!tabbar_home' from '/User/...':Module does not exist in the module map or in these directories: /User/...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions