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

Dynamic View Registration #8

nick-thompson opened this issue Jun 26, 2019 · 1 comment


1 participant
Copy link

commented Jun 26, 2019

This one's almost already there, basically just need to refactor ReactApplicationRoot's createViewInstance to replace the blocks of if Viewtype == and instead maybe read from a std::map<juce::String, std::function<ViewId()>> and just invoke the function. Then provide a hook for registering a new view factory with the ReactApplication Root...

appRoot.registerViewType('oscilloscope', []() {
    std::unique_ptr<View> view = std::make_unique<MyCustomView>();

This comment has been minimized.

Copy link
Owner Author

commented Jul 17, 2019

Added in 7121d46

Blueprint automation moved this from High priority to Closed Jul 17, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.