Created
October 13, 2017 15:46
-
-
Save fakenickels/a8625e440a5f483411d798ab72b64971 to your computer and use it in GitHub Desktop.
styled-components-ish similar for Reason
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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