TabBarIcon.js 411 B

12345678910111213141516
  1. /* eslint-disable react/destructuring-assignment */
  2. import * as React from "react";
  3. import { Icon, useTheme } from "@ui-kitten/components";
  4. export default function TabBarIcon(props) {
  5. const theme = useTheme();
  6. return (
  7. <Icon
  8. name={props.name}
  9. style={{ width: 30, height: 30 }}
  10. fill={
  11. props.focused ? theme["color-primary-500"] : theme["color-basic-600"]
  12. }
  13. />
  14. );
  15. }