ohanhi / elm-native-ui

[CLOSED] Experiment: mobile apps in Elm using React Native.
BSD 3-Clause "New" or "Revised" License
1.54k stars 76 forks source link

Unify syntax for styles, handlers and other props #15

Closed ohanhi closed 8 years ago

ohanhi commented 8 years ago

Properties for a given component should be a single list, just like in elm-html. Currently only styles can be set for components, and event handler is a separate parameter. Ideally, the component API should be very familiar-looking:

text
  [ style stylesList
  , onPressHandler
  , numberOfLines 1
  ]
  "Press me"
ohanhi commented 8 years ago

This was done in #25.