Skip to content

Commit

Permalink
remove TabBarIOS dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
connectdotz authored and oblador committed Jan 18, 2021
1 parent 9d2b77a commit 7332f36
Show file tree
Hide file tree
Showing 21 changed files with 1 addition and 136 deletions.
2 changes: 0 additions & 2 deletions AntDesign.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ const iconSet = createIconSet(glyphMap, 'anticon', 'AntDesign.ttf');
export default iconSet;
export const {
Button,
TabBarItem,
TabBarItemIOS,
getImageSource,
getImageSourceSync,
} = iconSet;
2 changes: 0 additions & 2 deletions Entypo.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ const iconSet = createIconSet(glyphMap, 'Entypo', 'Entypo.ttf');
export default iconSet;
export const {
Button,
TabBarItem,
TabBarItemIOS,
getImageSource,
getImageSourceSync,
} = iconSet;
2 changes: 0 additions & 2 deletions EvilIcons.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ const iconSet = createIconSet(glyphMap, 'EvilIcons', 'EvilIcons.ttf');
export default iconSet;
export const {
Button,
TabBarItem,
TabBarItemIOS,
getImageSource,
getImageSourceSync,
} = iconSet;
2 changes: 1 addition & 1 deletion FONTAWESOME5.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const icon = <FontAwesome5 name={'git'} brand />;

No specified type indicates Regular font.

Button, TabBarItem etc. works the same way:
Button works the same way:

```javascript
import FontAwesome5 from 'react-native-vector-icons/FontAwesome5';
Expand Down
2 changes: 0 additions & 2 deletions Feather.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ const iconSet = createIconSet(glyphMap, 'Feather', 'Feather.ttf');
export default iconSet;
export const {
Button,
TabBarItem,
TabBarItemIOS,
getImageSource,
getImageSourceSync,
} = iconSet;
Expand Down
2 changes: 0 additions & 2 deletions FontAwesome.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ const iconSet = createIconSet(glyphMap, 'FontAwesome', 'FontAwesome.ttf');
export default iconSet;
export const {
Button,
TabBarItem,
TabBarItemIOS,
getImageSource,
getImageSourceSync,
} = iconSet;
2 changes: 0 additions & 2 deletions FontAwesome5.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ const iconSet = createFA5iconSet(glyphMap, metadata, false);
export default iconSet;
export const {
Button,
TabBarItem,
TabBarItemIOS,
getImageSource,
getImageSourceSync,
} = iconSet;
2 changes: 0 additions & 2 deletions FontAwesome5Pro.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ const iconSet = createFA5iconSet(glyphMap, metadata, true);
export default iconSet;
export const {
Button,
TabBarItem,
TabBarItemIOS,
getImageSource,
getImageSourceSync,
} = iconSet;
2 changes: 0 additions & 2 deletions Fontisto.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ const iconSet = createIconSet(glyphMap, 'Fontisto', 'Fontisto.ttf');
export default iconSet;
export const {
Button,
TabBarItem,
TabBarItemIOS,
getImageSource,
getImageSourceSync,
} = iconSet;
2 changes: 0 additions & 2 deletions Foundation.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ const iconSet = createIconSet(glyphMap, 'fontcustom', 'Foundation.ttf');
export default iconSet;
export const {
Button,
TabBarItem,
TabBarItemIOS,
getImageSource,
getImageSourceSync,
} = iconSet;
2 changes: 0 additions & 2 deletions Ionicons.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ const iconSet = createIconSet(glyphMap, 'Ionicons', 'Ionicons.ttf');
export default iconSet;
export const {
Button,
TabBarItem,
TabBarItemIOS,
getImageSource,
getImageSourceSync,
} = iconSet;
2 changes: 0 additions & 2 deletions MaterialCommunityIcons.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ const iconSet = createIconSet(glyphMap, 'Material Design Icons', 'MaterialCommun
export default iconSet;
export const {
Button,
TabBarItem,
TabBarItemIOS,
getImageSource,
getImageSourceSync,
} = iconSet;
2 changes: 0 additions & 2 deletions MaterialIcons.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ const iconSet = createIconSet(glyphMap, 'Material Icons', 'MaterialIcons.ttf');
export default iconSet;
export const {
Button,
TabBarItem,
TabBarItemIOS,
getImageSource,
getImageSourceSync,
} = iconSet;
Expand Down
2 changes: 0 additions & 2 deletions Octicons.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ const iconSet = createIconSet(glyphMap, 'Octicons', 'Octicons.ttf');
export default iconSet;
export const {
Button,
TabBarItem,
TabBarItemIOS,
getImageSource,
getImageSourceSync,
} = iconSet;
2 changes: 0 additions & 2 deletions SimpleLineIcons.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ const iconSet = createIconSet(glyphMap, 'simple-line-icons', 'SimpleLineIcons.tt
export default iconSet;
export const {
Button,
TabBarItem,
TabBarItemIOS,
getImageSource,
getImageSourceSync,
} = iconSet;
2 changes: 0 additions & 2 deletions Zocial.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ const iconSet = createIconSet(glyphMap, 'zocial', 'Zocial.ttf');
export default iconSet;
export const {
Button,
TabBarItem,
TabBarItemIOS,
getImageSource,
getImageSourceSync,
} = iconSet;
6 changes: 0 additions & 6 deletions lib/create-icon-set.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
import ensureNativeModuleAvailable from './ensure-native-module-available';
import createIconSourceCache from './create-icon-source-cache';
import createIconButtonComponent from './icon-button';
import createTabBarItemIOSComponent from './tab-bar-item-ios';

export const NativeIconAPI =
NativeModules.RNVectorIconsManager || NativeModules.RNVectorIconsModule;
Expand Down Expand Up @@ -190,11 +189,6 @@ export default function createIconSet(
}

Icon.Button = createIconButtonComponent(Icon);
Icon.TabBarItem = createTabBarItemIOSComponent(
IconNamePropType,
getImageSource
);
Icon.TabBarItemIOS = Icon.TabBarItem;
Icon.getImageSource = getImageSource;
Icon.getImageSourceSync = getImageSourceSync;
Icon.loadFont = loadFont;
Expand Down
2 changes: 0 additions & 2 deletions lib/create-multi-style-icon-set.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ export default function createMultiStyleIconSet(styles, optionsInput = {}) {

const Icon = createStyledIconClass();
Icon.Button = createStyledIconClass('Button');
Icon.TabBarItem = createStyledIconClass('TabBarItem');
Icon.TabBarItemIOS = createStyledIconClass('TabBarItemIOS');
Icon.getStyledIconSet = getStyledIconSet;
Icon.getImageSource = getImageSource;
Icon.getFontFamily = getFontFamily;
Expand Down
93 changes: 0 additions & 93 deletions lib/tab-bar-item-ios.js

This file was deleted.

2 changes: 0 additions & 2 deletions templates/bundled-icon-set.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ const iconSet = createIconSet(glyphMap, '${fontFamily}', '${componentName}.ttf')
export default iconSet;
export const {
Button,
TabBarItem,
TabBarItemIOS,
getImageSource,
getImageSourceSync,
} = iconSet;
2 changes: 0 additions & 2 deletions templates/separated-icon-set.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ const iconSet = createIconSet(glyphMap, '${fontFamily}', '${componentName}.ttf')
export default iconSet;
export const {
Button,
TabBarItem,
TabBarItemIOS,
getImageSource,
getImageSourceSync,
} = iconSet;

0 comments on commit 7332f36

Please sign in to comment.