TabBarIcon.js 488 B

12345678910111213141516171819
  1. import * as React from "react";
  2. import { Icon, useTheme } from "@ui-kitten/components";
  3. import Colors from "../constants/Colors";
  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
  12. ? theme["color-primary-500"]
  13. : theme["color-basic-600"]
  14. }
  15. />
  16. );
  17. }