Skip to content

Add Hotwire Native tools #82

@leonvogt

Description

@leonvogt

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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions