Skip to content

Commit

Permalink
Add @expo/vector-icons bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
chernandez7 authored and FiberJW committed Oct 2, 2019
1 parent bcc1dcc commit 85ca4c3
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions packages/reason-expo/src/VectorIcons.re
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
module MaterialIcons = {
[@bs.module "@expo/vector-icons"] [@react.component]
external make: (~name: string, ~size: int, ~color: string) => React.element =
"MaterialIcons";
};

module Ionicons = {
[@bs.module "@expo/vector-icons"] [@react.component]
external make: (~name: string, ~size: int, ~color: string) => React.element =
"Ionicons";
};

module Entypo = {
[@bs.module "@expo/vector-icons"] [@react.component]
external make: (~name: string, ~size: int, ~color: string) => React.element =
"Entypo";
};

module EvilIcons = {
[@bs.module "@expo/vector-icons"] [@react.component]
external make: (~name: string, ~size: int, ~color: string) => React.element =
"EvilIcons";
};

module FontAwesome = {
[@bs.module "@expo/vector-icons"] [@react.component]
external make: (~name: string, ~size: int, ~color: string) => React.element =
"FontAwesome";
};

module Foundation = {
[@bs.module "@expo/vector-icons"] [@react.component]
external make: (~name: string, ~size: int, ~color: string) => React.element =
"Foundation";
};

module MaterialCommunityIcons = {
[@bs.module "@expo/vector-icons"] [@react.component]
external make: (~name: string, ~size: int, ~color: string) => React.element =
"MaterialCommunityIcons";
};

module Octicons = {
[@bs.module "@expo/vector-icons"] [@react.component]
external make: (~name: string, ~size: int, ~color: string) => React.element =
"Octicons";
};

0 comments on commit 85ca4c3

Please sign in to comment.