Skip to content

Commit

Permalink
Merge pull request #24 from eeue56/patch-2
Browse files Browse the repository at this point in the history
Use a proper main
  • Loading branch information
ohanhi committed Mar 16, 2016
2 parents d185778 + dbe03ae commit 6042931
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Main.elm
Expand Up @@ -8,11 +8,15 @@ import ReactNative.NativeApp as NativeApp
import ReactNative.Style as Style exposing ( defaultTransform )


-- "main"
port viewTree : Signal Json.Encode.Value
port viewTree =
app =
NativeApp.start { model = model, view = view, update = update, init = init }

main =
app.html

port tasks : Signal (Task.Task Never ())
port tasks =
app.tasks

type alias Model = Int

Expand Down Expand Up @@ -77,7 +81,3 @@ button address action color content =
]
(Just <| RN.onPress address action)
content


-- for the first vtree
port init : Signal ()

0 comments on commit 6042931

Please sign in to comment.