Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use opal 0.7.0 #9

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
show version number for core libs
  • Loading branch information
rainchen committed Aug 23, 2015
commit f0b3c7963f0e6295e44d9ce95c3870c01b56dbf9
5 changes: 3 additions & 2 deletions app/application.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require "opal"
require "opal/version"
require "react"
require "react/native"

Expand All @@ -7,7 +8,7 @@ class App
include React::NativeComponent

before_mount do
puts "Hello! this is #{RUBY_ENGINE} #{RUBY_ENGINE_VERSION}"
puts "This app is coded using ReactNative(#{React::VERSION}) with Opal(#{Opal::VERSION}) on Ruby(#{RUBY_VERSION})"
# `console.log(Opal)` # demo for how to access the `Opal` stuff for debugging
end

Expand Down Expand Up @@ -38,7 +39,7 @@ def render

present(View, {style: styles.container}) do
present(Text, {style: styles.welcome}) { "Welcome to React Native!💖" }
present(Text, {style: styles.instructions}) { "This app is coded using Opal(#{RUBY_ENGINE_VERSION}) on Ruby(#{RUBY_VERSION})" }
present(Text, {style: styles.instructions}) { "This app is coded using ReactNative(#{React::VERSION}) with Opal(#{Opal::VERSION}) on Ruby(#{RUBY_VERSION})" }
present(Text, {style: styles.instructions}) { "To get started, edit app/application.rb" }
present(Text, {style: styles.instructions}) do
"Press Cmd+R to reload,\nCmd+Control+Z for dev menu"
Expand Down