Skip to content

Instantly share code, notes, and snippets.

@jaredly
Last active February 21, 2019 19:55
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaredly/a5e0102c060b7a1b40525d41f87843a8 to your computer and use it in GitHub Desktop.
Save jaredly/a5e0102c060b7a1b40525d41f87843a8 to your computer and use it in GitHub Desktop.
let module Styled = {
let module Create (Config: {
let name: string;
let style: ReactNative.Style.style;
}) => {
let component = ReasonReact.statelessComponent Config.name;
let make ::paddingVertical=? => {
let style = combineStylesSomeHow Config.style paddingVertical; /* <- this is an optional btw */
View.make ::style
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment