Skip to content

Instantly share code, notes, and snippets.

@drager
Created January 13, 2018 18:08
Show Gist options
  • Save drager/a4d343e5cf6308506385b2a8abe89540 to your computer and use it in GitHub Desktop.
Save drager/a4d343e5cf6308506385b2a8abe89540 to your computer and use it in GitHub Desktop.
// 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 */
[@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