百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
O

opal-native

> 编程语言
开源

Ruby 中的 React Native

399 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

Ruby 中的 React Native

Opal Native - React Native in Ruby

JavaScript is an implementation detail.

-- Why React Native Matters

Motivation

To provide a Ruby-friendly tool chain (this doesn't require node / npm) and wrapper over React Native API. :sparkling_heart:

Dependency

  • Opal Ruby is used as Ruby transpiler to transpile your Ruby code into JavaScript.
  • react.rb is a React.js wrapper providing basic DSL support in Ruby.

Usage

  1. Clone or download this project
  2. bundle install
  3. bundle exec pod install to install iOS dependency
  4. open SampleApp.xcworkspace to launch Xcode (xcWorkspace not xcodeProj!)
  5. bundle exec thin -R config.ru start -p 8081 to start packaging server
  6. Build & Run

Note: Switch port other than 8081 is not allowed currently.

Debug

  1. Ctrl + Command + Z to toggle dev menu, and select "Enable debugging".
  2. Open http://localhost:8081/ in Chrome or Safari to debug in inspector (haven't test in Firefox yet)
  3. For details, see Debugging Tutorial of React Native

TODO

  • Source map is broken
  • Publish as a gem
  • Add project generator or provide Xcode template
  • Rewrite the original Movie.app example

Contributions

This project is currently in proof of concept stage, so discussion, bug report and PR are really welcome :wink:.

Contact

David Chang @zetachang

License

opal-native is available under the MIT license. See the LICENSE file for more info.

Issues· 7 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Ruby

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言