Closed 0xmikko closed 4 years ago
React native vector icons requires tabBarIos Running a web version of react native, poduces an error:
./node_modules/react-native-vector-icons/lib/tab-bar-item-ios.js Attempted import error: 'TabBarIOS' is not exported from './react-native'.
How to reproduce Import react-native-vector-icons with react-native-elements and create an Icon object:
react-native-vector-icons
react-native-elements
import Icon from 'react-native-vector-icons/Ionicons'; const icon = <Icon name={iconName} size={size} color={color} />
Expected behavior Icon which could be used in React code
Environment (include versions). Did this work in previous versions? It works in 0.12.3 and doesn't work in next version when support of tabBarIos was removed.
Please open an issue against their repo.
Also worth noting that library is not a good approach for web, which should prefer modular svg for icons in almost all cases over fonts
React native vector icons requires tabBarIos Running a web version of react native, poduces an error:
How to reproduce Import
react-native-vector-icons
withreact-native-elements
and create an Icon object:Expected behavior Icon which could be used in React code
Environment (include versions). Did this work in previous versions? It works in 0.12.3 and doesn't work in next version when support of tabBarIos was removed.