Created
January 13, 2018 18:08
-
-
Save drager/a4d343e5cf6308506385b2a8abe89540 to your computer and use it in GitHub Desktop.
This file contains 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
// Generated by BUCKLESCRIPT VERSION 2.1.0, PLEASE EDIT WITH CARE | |
'use strict'; | |
var ReasonReact = require("reason-react/lib/js/src/ReasonReact.js"); | |
var MaterialIcons = require("react-native-vector-icons/MaterialIcons"); | |
console.log(MaterialIcons.Icon); | |
function make(name, color, size, children) { | |
return ReasonReact.wrapJsForReason(MaterialIcons.Icon, { | |
name: name, | |
color: color, | |
size: size | |
}, children); | |
} | |
exports.make = make; | |
/* Not a pure module */ |
This file contains 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
[@bs.module "react-native-vector-icons/MaterialIcons"] | |
external icon : ReasonReact.reactClass = "Icon"; | |
Js.log(icon); | |
let make = (~name: string, ~color: string, ~size: int, children) => | |
ReasonReact.wrapJsForReason( | |
~reactClass=icon, | |
~props={"name": name, "color": color, "size": size}, | |
children | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment