Skip to content
项目

关于

React Native in Ruby

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Opal Native - React Native in Ruby

JavaScript is an implementation detail.

-- Why React Native Matters

Screenshot

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.

探索相关项目

加载中…