A Hotwire Native generator for Rails applications
Power pack to make your Rails app Hotwire Native
Install the gem:
bundle add hotwire_native_rails
Run the generator:
rails g hotwire_native
Recommended to use with my fork of iOS Hotwire Native starter app.
viewport_meta_tag
- forbid zooming on mobile/nativedata: { turbo_action: replace_if_native }
to submit authentication forms & forms in modals:mobile
request variant. index.html+mobile.erb
link_to
to not open internal links in in-app browser on native app<title>
for native appshotwire-native:
css variant (works with CSS and Tailwind)Form
, Menu
, Button
)Nav
(UIMenu) componentReview Prompt
componentbridge_form_with
- easily apply Bridge Form
componentpath_configuration_controller
for ios
and android
Make a release to rubygems:
# 1. update version in version.rb
# 2. zip the gem
gem build hotwire_native_rails.gemspec
# 3. push the zip to rubygems
gem push hotwire_native_rails-0.4.0.gem