JavaScript is an implementation detail.
To provide a Ruby-friendly tool chain (this doesn't require node / npm) and wrapper over React Native API. 💖
- 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.
- Clone or download this project
bundle install
bundle exec pod install
to install iOS dependencyopen SampleApp.xcworkspace
to launch Xcode (xcWorkspace not xcodeProj!)bundle exec thin -R config.ru start -p 8081
to start packaging server- Build & Run
Note: Switch port other than 8081 is not allowed currently.
Ctrl + Command + Z
to toggle dev menu, and select "Enable debugging".- Open
http://localhost:8081/
in Chrome or Safari to debug in inspector (haven't test in Firefox yet) - For details, see Debugging Tutorial of React Native
- Source map is broken
- Publish as a gem
- Add project generator or provide Xcode template
- Rewrite the original Movie.app example
This project is currently in proof of concept stage, so discussion, bug report and PR are really welcome 😉.
opal-native is available under the MIT license. See the LICENSE file for more info.