Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Manually Focus a TextInput #315

Open
gabriel-earle opened this issue Dec 22, 2023 · 0 comments
Open

How to Manually Focus a TextInput #315

gabriel-earle opened this issue Dec 22, 2023 · 0 comments

Comments

@gabriel-earle
Copy link

gabriel-earle commented Dec 22, 2023

Or perhaps, a more general question, how do I get some kind of reference to a view that is rendered?

It's not too important if it's in C++ or JS because the interop strategies are working well for me. I set up my code so that my JUCE AudioProcessor owns an EcmascriptEngine and a ReactApplicationRoot that was constructed with the owned engine. So I have a reference to these two things. However, the public methods/properties of these two alone do not seem to be enough to manipulate specific Views that are rendered.

I've also tried to figure out if any of methods belonging to the __NativeMethods__ global object can help me achieve this, but I can't find anything that works.

I think the main challenge is getting the viewId of the views in my UI. If I can get those, I can use __NativeMethods__.setViewProperty/invokeViewMethod.

Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant