diff --git a/src/components/icon-button.js b/src/components/icon-button.js index 65f46c8..f61a19a 100644 --- a/src/components/icon-button.js +++ b/src/components/icon-button.js @@ -1,20 +1,18 @@ // @flow import React from 'react'; -const iconStyle = {width: 24, height: 24}; - type Props = { - icon: string, + icon: string | React$Element<*>, label?: string, onPress: () => void, style?: Object, }; const IconButton = ({icon, label, onPress, style}: Props) => - (typeof icon === 'string' - ? {label} - :
+ typeof icon === 'string' + ? {label} + :
{icon} -
); +
; export default IconButton;