purescript-react-basic-native icon indicating copy to clipboard operation
purescript-react-basic-native copied to clipboard

defining stylesheets

Open joprice opened this issue 5 years ago • 1 comments

I see a stylesheet defined in js in the examples, but is there a way to create stylesheets in purescript, maybe in combination using another library? I checked the generated code in case I missed something.

joprice avatar Sep 29 '20 22:09 joprice

I poked around a bit more and found that the style type is CSS, an opaque foreign type that seems to accept any record:

RN.view
  { style:
    css
    { alignItems: "left"
    , backgroundColor: "#fff"
    }

joprice avatar Sep 29 '20 23:09 joprice