Skip to content

Instantly share code, notes, and snippets.

@fakenickels
Created October 13, 2017 15:46
Show Gist options
  • Save fakenickels/a8625e440a5f483411d798ab72b64971 to your computer and use it in GitHub Desktop.
Save fakenickels/a8625e440a5f483411d798ab72b64971 to your computer and use it in GitHub Desktop.
styled-components-ish similar for Reason
open ReactNative;
module type Config = {
let name: string;
let style: Style.t;
};
module Create (Config: Config) => {
let component = ReasonReact.statelessComponent Config.name;
let make = View.make style::Config.style;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment