TabBarIcon.js 381 B

12345678910111213141516
  1. import { Ionicons } from '@expo/vector-icons';
  2. import * as React from 'react';
  3. import Colors from '../constants/Colors';
  4. export default function TabBarIcon(props) {
  5. const { name, focused } = props;
  6. return (
  7. <Ionicons
  8. name={name}
  9. size={30}
  10. style={{ marginBottom: -3 }}
  11. color={focused ? Colors.tabIconSelected : Colors.tabIconDefault}
  12. />
  13. );
  14. }