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

Add Hotwire Native tools #82

Open
3 of 5 tasks
leonvogt opened this issue Oct 13, 2024 · 0 comments
Open
3 of 5 tasks

Add Hotwire Native tools #82

leonvogt opened this issue Oct 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@leonvogt
Copy link
Owner

It could be useful to add some time savers for Hotwire Native development.
I can think of two things that could be useful:

Set the current user agent:
The user can create a list of possible user agents and can select the ones that are needed for the current development.

  • Turbo Native
  • Hotwire Native
  • app-version: 1.2.1
  • app-version: 2.0.0
  • bridge-components: [form menu overflow-menu]

We would take the selected options and create a user agent string that can be used in the browser.

Execute preconfigured JS:
The user can create a list of JS snippets that can be executed in the current tab.
Like:

  • window.bridge.postNativeToJS("didPressMenuButton")
  • window.bridge.postNativeToJS("didEnterForeground")
@leonvogt leonvogt added the enhancement New feature or request label Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant