Skip to content

[Request] Invoke Methods of Native UI Components #2272

@Hybrid-Force

Description

@Hybrid-Force

In React Native, we can expose properties of native UI components and native UI components can send events to JS. However, it lack the ability to invoke methods of native UI components.

For example, I have a drawing pad which is a custom native UI component. I want to be able to call some method from JS side and let the native drawing pad export the image.

I have been hacking around RCTUIManager which has the viewRegistry and viewManagerRegistry, and managed to invoked methods of native UI components via view manager.

I think calling native UI components' methods is common requirement and it would be nice to have it built in React Native

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