From 6625c21a56683cf09afe5f8dcef5acb76f39dbe2 Mon Sep 17 00:00:00 2001 From: Brent Vatne Date: Tue, 1 Dec 2020 20:44:36 -0800 Subject: [PATCH] Update build files --- build/createIconSet.d.ts | 12 +- build/createIconSet.js.map | 2 +- .../lib/tab-bar-item-ios.js | 20 +-- .../lib/tab-bar-item-ios.web.js | 10 -- .../lib/toolbar-android.js | 145 ------------------ .../lib/toolbar-android.web.js | 9 -- .../lib/tab-bar-item-ios.js | 20 +-- 7 files changed, 30 insertions(+), 188 deletions(-) delete mode 100644 build/vendor/react-native-vector-icons/lib/tab-bar-item-ios.web.js delete mode 100644 build/vendor/react-native-vector-icons/lib/toolbar-android.js delete mode 100644 build/vendor/react-native-vector-icons/lib/toolbar-android.web.js diff --git a/build/createIconSet.d.ts b/build/createIconSet.d.ts index 9837860..8e22d35 100644 --- a/build/createIconSet.d.ts +++ b/build/createIconSet.d.ts @@ -1,5 +1,5 @@ import React, { ComponentClass } from "react"; -import { TextProps, TouchableHighlightProps, ViewProps } from "react-native"; +import { TextProps, TouchableHighlightProps, ViewProps, OpaqueColorValue } from "react-native"; export { DEFAULT_ICON_COLOR, DEFAULT_ICON_SIZE } from "./vendor/react-native-vector-icons/lib/create-icon-set"; export interface IconButtonProps extends ViewProps, TouchableHighlightProps { /** @@ -16,10 +16,11 @@ export interface IconButtonProps extends ViewProps, Touch */ name: GLYPHS; /** - * Color of the icon + * Color of the icon. Can be a string or OpaqueColorValue (returned from + * PlatformColor(..)) * */ - color?: string; + color?: string | OpaqueColorValue; } export interface IconProps extends TextProps { /** @@ -36,10 +37,11 @@ export interface IconProps extends TextProps { */ name: GLYPHS; /** - * Color of the icon + * Color of the icon. Can be a string or OpaqueColorValue (returned from + * PlatformColor(..)) * */ - color?: string; + color?: string | OpaqueColorValue; } export declare type GlyphMap = { [K in G]: number; diff --git a/build/createIconSet.js.map b/build/createIconSet.js.map index 3b35b1b..16d6b0b 100644 --- a/build/createIconSet.js.map +++ b/build/createIconSet.js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EAAE;oBACd,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;iBAClC;YACH,CAAC;YAED,MAAM;gBACJ,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE;oBAC5B,OAAO,CAAC,IAAI,CAAC,AAAD,EAAG,CAAC;iBACjB;gBAED,OAAO,CACL,CAAC,gBAAgB,CACf,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE;oBACV,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;gBACpB,CAAC,CAAC,CACF,IAAI,IAAI,CAAC,KAAK,CAAC,EACf,CACH,CAAC;YACJ,CAAC;SACF;QAhDQ,YAAS,GAAG,gBAAgB,CAAC,SAAU;QACvC,eAAY,GAAG,gBAAgB,CAAC,YAAa;QAC7C,SAAM,GAAG,yBAAyB,CAAC,EAAI,CAAE;QACzC,WAAQ,GAAG,QAAS;QACpB,iBAAc,GAAG,GAAG,EAAE,CAAC,QAAS;QAChC,gBAAa,GAAG,GAAG,EAAE,CAAC,QAAS;QAC/B,WAAQ,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAE;QACtC,OAAI,GAAG,IAAK;WAyCnB;AACJ,CAAC","sourcesContent":["import * as Font from \"expo-font\";\nimport React, { ComponentClass } from \"react\";\nimport { Text, TextProps, TouchableHighlightProps, ViewProps } from \"react-native\";\n\nimport createIconSet from \"./vendor/react-native-vector-icons/lib/create-icon-set\";\nimport createIconButtonComponent from \"./vendor/react-native-vector-icons/lib/icon-button\";\n\nexport {\n DEFAULT_ICON_COLOR,\n DEFAULT_ICON_SIZE\n} from \"./vendor/react-native-vector-icons/lib/create-icon-set\";\n\nexport interface IconButtonProps extends ViewProps, TouchableHighlightProps {\n /**\n * Size of the icon, can also be passed as fontSize in the style object.\n *\n * @default 12\n */\n size?: number;\n\n /**\n * Name of the icon to show\n *\n * See Icon Explorer app\n * {@link https://expo.github.io/vector-icons/}\n */\n name: GLYPHS;\n\n /**\n * Color of the icon\n *\n */\n color?: string;\n}\n\nexport interface IconProps extends TextProps {\n /**\n * Size of the icon, can also be passed as fontSize in the style object.\n *\n * @default 12\n */\n size?: number;\n\n /**\n * Name of the icon to show\n *\n * See Icon Explorer app\n * {@link https://expo.github.io/vector-icons/}\n */\n name: GLYPHS;\n\n /**\n * Color of the icon\n *\n */\n color?: string;\n}\n\nexport type GlyphMap = { [K in G]: number }\n\nexport interface Icon {\n propTypes: any;\n defaultProps: any;\n Button: ComponentClass>;\n glyphMap: GlyphMap;\n getRawGlyphMap: () => GlyphMap;\n getFontFamily: () => FN;\n loadFont: () => Promise;\n font: { [x: string]: any };\n new (props: IconProps): React.Component>;\n}\n\nexport default function(\n glyphMap: GlyphMap,\n fontName: FN,\n expoAssetId,\n fontStyle?: any\n): Icon {\n const font = { [fontName]: expoAssetId };\n const RNVIconComponent = createIconSet(glyphMap, fontName, null, fontStyle);\n\n return class Icon extends React.Component> {\n static propTypes = RNVIconComponent.propTypes;\n static defaultProps = RNVIconComponent.defaultProps;\n static Button = createIconButtonComponent(Icon);\n static glyphMap = glyphMap;\n static getRawGlyphMap = () => glyphMap;\n static getFontFamily = () => fontName;\n static loadFont = () => Font.loadAsync(font);\n static font = font;\n\n _mounted = false;\n _icon?: any;\n\n state = {\n fontIsLoaded: Font.isLoaded(fontName)\n };\n\n async componentDidMount() {\n this._mounted = true;\n if (!this.state.fontIsLoaded) {\n await Font.loadAsync(font);\n this._mounted && this.setState({ fontIsLoaded: true });\n }\n }\n\n componentWillUnmount() {\n this._mounted = false;\n }\n\n setNativeProps(props) {\n if (this._icon) {\n this._icon.setNativeProps(props);\n }\n }\n\n render() {\n if (!this.state.fontIsLoaded) {\n return ;\n }\n\n return (\n {\n this._icon = view;\n }}\n {...this.props}\n />\n );\n }\n };\n}\n"]} \ No newline at end of file +{"version":3,"file":"createIconSet.js","sourceRoot":"","sources":["../src/createIconSet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,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AI,CAAC,KAAK,CAAC,YAAY,EAAE;oBAC5B,OAAO,CAAC,IAAI,CAAC,AAAD,EAAG,CAAC;iBACjB;gBAED,OAAO,CACL,CAAC,gBAAgB,CACf,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE;oBACV,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;gBACpB,CAAC,CAAC,CACF,IAAI,IAAI,CAAC,KAAK,CAAC,EACf,CACH,CAAC;YACJ,CAAC;SACF;QAhDQ,YAAS,GAAG,gBAAgB,CAAC,SAAU;QACvC,eAAY,GAAG,gBAAgB,CAAC,YAAa;QAC7C,SAAM,GAAG,yBAAyB,CAAC,EAAI,CAAE;QACzC,WAAQ,GAAG,QAAS;QACpB,iBAAc,GAAG,GAAG,EAAE,CAAC,QAAS;QAChC,gBAAa,GAAG,GAAG,EAAE,CAAC,QAAS;QAC/B,WAAQ,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAE;QACtC,OAAI,GAAG,IAAK;WAyCnB;AACJ,CAAC","sourcesContent":["import * as Font from \"expo-font\";\nimport React, { ComponentClass } from \"react\";\nimport { Text, TextProps, TouchableHighlightProps, ViewProps, OpaqueColorValue } from \"react-native\";\n\nimport createIconSet from \"./vendor/react-native-vector-icons/lib/create-icon-set\";\nimport createIconButtonComponent from \"./vendor/react-native-vector-icons/lib/icon-button\";\n\nexport {\n DEFAULT_ICON_COLOR,\n DEFAULT_ICON_SIZE\n} from \"./vendor/react-native-vector-icons/lib/create-icon-set\";\n\nexport interface IconButtonProps extends ViewProps, TouchableHighlightProps {\n /**\n * Size of the icon, can also be passed as fontSize in the style object.\n *\n * @default 12\n */\n size?: number;\n\n /**\n * Name of the icon to show\n *\n * See Icon Explorer app\n * {@link https://expo.github.io/vector-icons/}\n */\n name: GLYPHS;\n\n /**\n * Color of the icon. Can be a string or OpaqueColorValue (returned from\n * PlatformColor(..))\n *\n */\n color?: string | OpaqueColorValue;\n}\n\nexport interface IconProps extends TextProps {\n /**\n * Size of the icon, can also be passed as fontSize in the style object.\n *\n * @default 12\n */\n size?: number;\n\n /**\n * Name of the icon to show\n *\n * See Icon Explorer app\n * {@link https://expo.github.io/vector-icons/}\n */\n name: GLYPHS;\n\n /**\n * Color of the icon. Can be a string or OpaqueColorValue (returned from\n * PlatformColor(..))\n *\n */\n color?: string | OpaqueColorValue;\n}\n\nexport type GlyphMap = { [K in G]: number }\n\nexport interface Icon {\n propTypes: any;\n defaultProps: any;\n Button: ComponentClass>;\n glyphMap: GlyphMap;\n getRawGlyphMap: () => GlyphMap;\n getFontFamily: () => FN;\n loadFont: () => Promise;\n font: { [x: string]: any };\n new (props: IconProps): React.Component>;\n}\n\nexport default function(\n glyphMap: GlyphMap,\n fontName: FN,\n expoAssetId,\n fontStyle?: any\n): Icon {\n const font = { [fontName]: expoAssetId };\n const RNVIconComponent = createIconSet(glyphMap, fontName, null, fontStyle);\n\n return class Icon extends React.Component> {\n static propTypes = RNVIconComponent.propTypes;\n static defaultProps = RNVIconComponent.defaultProps;\n static Button = createIconButtonComponent(Icon);\n static glyphMap = glyphMap;\n static getRawGlyphMap = () => glyphMap;\n static getFontFamily = () => fontName;\n static loadFont = () => Font.loadAsync(font);\n static font = font;\n\n _mounted = false;\n _icon?: any;\n\n state = {\n fontIsLoaded: Font.isLoaded(fontName)\n };\n\n async componentDidMount() {\n this._mounted = true;\n if (!this.state.fontIsLoaded) {\n await Font.loadAsync(font);\n this._mounted && this.setState({ fontIsLoaded: true });\n }\n }\n\n componentWillUnmount() {\n this._mounted = false;\n }\n\n setNativeProps(props) {\n if (this._icon) {\n this._icon.setNativeProps(props);\n }\n }\n\n render() {\n if (!this.state.fontIsLoaded) {\n return ;\n }\n\n return (\n {\n this._icon = view;\n }}\n {...this.props}\n />\n );\n }\n };\n}\n"]} \ No newline at end of file diff --git a/build/vendor/react-native-vector-icons/lib/tab-bar-item-ios.js b/build/vendor/react-native-vector-icons/lib/tab-bar-item-ios.js index fb53b6d..bca76db 100644 --- a/build/vendor/react-native-vector-icons/lib/tab-bar-item-ios.js +++ b/build/vendor/react-native-vector-icons/lib/tab-bar-item-ios.js @@ -1,18 +1,20 @@ /* eslint-disable react/no-unused-prop-types */ -import isEqual from 'lodash.isequal'; -import pick from 'lodash.pick'; -import React, { PureComponent } from 'react'; -import PropTypes from 'prop-types'; -import { TabBarIOS } from './react-native'; +import isEqual from "lodash.isequal"; +import pick from "lodash.pick"; +import React, { PureComponent } from "react"; +import PropTypes from "prop-types"; +const TabBarIOS = { + Item: function () {}, +}; -const ICON_PROP_NAMES = ['iconName', 'iconSize', 'iconColor']; +const ICON_PROP_NAMES = ["iconName", "iconSize", "iconColor"]; const SELECTED_ICON_PROP_NAMES = [ ...ICON_PROP_NAMES, - 'selectedIconName', - 'selectedIconColor', + "selectedIconName", + "selectedIconColor", ]; -const arePropsEqual = keys => (prevProps, nextProps) => +const arePropsEqual = (keys) => (prevProps, nextProps) => isEqual(pick(prevProps, keys), pick(nextProps, keys)); const areIconPropsEqual = arePropsEqual(ICON_PROP_NAMES); diff --git a/build/vendor/react-native-vector-icons/lib/tab-bar-item-ios.web.js b/build/vendor/react-native-vector-icons/lib/tab-bar-item-ios.web.js deleted file mode 100644 index 0ea0316..0000000 --- a/build/vendor/react-native-vector-icons/lib/tab-bar-item-ios.web.js +++ /dev/null @@ -1,10 +0,0 @@ -/* eslint-disable react/no-unused-prop-types */ -import React, { PureComponent } from 'react'; - -export default function createTabBarItemIOSComponent(IconNamePropType, getImageSource) { - return class TabBarItemIOS extends PureComponent { - render() { - return null; - } - }; -} diff --git a/build/vendor/react-native-vector-icons/lib/toolbar-android.js b/build/vendor/react-native-vector-icons/lib/toolbar-android.js deleted file mode 100644 index d0b199c..0000000 --- a/build/vendor/react-native-vector-icons/lib/toolbar-android.js +++ /dev/null @@ -1,145 +0,0 @@ -/* eslint-disable react/no-unused-prop-types */ -import isEqual from 'lodash/isEqual'; -import pick from 'lodash/pick'; -import React, { PureComponent } from 'react'; -import PropTypes from 'prop-types'; -import { ToolbarAndroid } from 'react-native'; - -const ICON_PROP_NAMES = ['iconSize', 'iconColor', 'titleColor']; -const LOGO_ICON_PROP_NAMES = [...ICON_PROP_NAMES, 'logoName']; -const NAV_ICON_PROP_NAMES = [...ICON_PROP_NAMES, 'navIconName']; -const OVERFLOW_ICON_PROP_NAMES = [...ICON_PROP_NAMES, 'overflowIconName']; -const ACTIONS_PROP_NAMES = [...ICON_PROP_NAMES, 'actions']; - -const arePropsEqual = keys => (prevProps, nextProps) => - isEqual(pick(prevProps, keys), pick(nextProps, keys)); - -const areLogoIconPropsEqual = arePropsEqual(LOGO_ICON_PROP_NAMES); -const areNavIconPropsEqual = arePropsEqual(NAV_ICON_PROP_NAMES); -const areOverflowIconPropsEqual = arePropsEqual(OVERFLOW_ICON_PROP_NAMES); -const areActionPropsEqual = arePropsEqual(ACTIONS_PROP_NAMES); - -export default function createToolbarAndroidComponent( - IconNamePropType, - getImageSource -) { - return class IconToolbarAndroid extends PureComponent { - static propTypes = { - logoName: IconNamePropType, - navIconName: IconNamePropType, - overflowIconName: IconNamePropType, - actions: PropTypes.arrayOf( - PropTypes.shape({ - title: PropTypes.string.isRequired, - iconName: IconNamePropType, - iconSize: PropTypes.number, - iconColor: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), - show: PropTypes.oneOf(['always', 'ifRoom', 'never']), - showWithText: PropTypes.bool, - }) - ), - iconSize: PropTypes.number, - iconColor: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), - titleColor: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), - }; - - static defaultProps = { - iconSize: 24, - }; - - state = { - logo: undefined, - navIcon: undefined, - overflowIcon: undefined, - actions: undefined, - }; - - componentDidMount() { - this.updateLogoIconSource(); - this.updateNavIconSource(); - this.updateOverflowIconSource(); - this.updateActionIconSources(); - } - - componentDidUpdate(prevProps) { - if (!areLogoIconPropsEqual(prevProps, this.props)) { - this.updateLogoIconSource(); - } - if (!areNavIconPropsEqual(prevProps, this.props)) { - this.updateNavIconSource(); - } - if (!areOverflowIconPropsEqual(prevProps, this.props)) { - this.updateOverflowIconSource(); - } - if (!areActionPropsEqual(prevProps, this.props)) { - this.updateActionIconSources(); - } - } - - async updateLogoIconSource() { - const { logoName, iconSize, iconColor, titleColor } = this.props; - if (logoName) { - const logo = await getImageSource( - logoName, - iconSize, - iconColor || titleColor - ); - this.setState({ logo }); - // eslint-disable-next-line react/destructuring-assignment - } else if (this.state.logo) { - this.setState({ logo: undefined }); - } - } - - async updateNavIconSource() { - const { navIconName, iconSize, iconColor, titleColor } = this.props; - if (navIconName) { - const navIcon = await getImageSource( - navIconName, - iconSize, - iconColor || titleColor - ); - this.setState({ navIcon }); - // eslint-disable-next-line react/destructuring-assignment - } else if (this.state.navIcon) { - this.setState({ navIcon: undefined }); - } - } - - async updateOverflowIconSource() { - const { overflowIconName, iconSize, iconColor, titleColor } = this.props; - if (overflowIconName) { - const overflowIcon = await getImageSource( - overflowIconName, - iconSize, - iconColor || titleColor - ); - this.setState({ overflowIcon }); - // eslint-disable-next-line react/destructuring-assignment - } else if (this.state.overflowIcon) { - this.setState({ overflowIcon: undefined }); - } - } - - async updateActionIconSources() { - const { actions, iconSize, iconColor, titleColor } = this.props; - const updatedActions = await Promise.all( - (actions || []).map(action => { - if (action.iconName) { - return getImageSource( - action.iconName, - action.iconSize || iconSize, - action.iconColor || iconColor || titleColor - ).then(icon => ({ ...action, icon })); - } - return Promise.resolve(action); - }) - ); - this.setState({ actions: updatedActions }); - } - - render() { - return ; - } - }; -} diff --git a/build/vendor/react-native-vector-icons/lib/toolbar-android.web.js b/build/vendor/react-native-vector-icons/lib/toolbar-android.web.js deleted file mode 100644 index 7972713..0000000 --- a/build/vendor/react-native-vector-icons/lib/toolbar-android.web.js +++ /dev/null @@ -1,9 +0,0 @@ -/* eslint-disable react/no-unused-prop-types */ -import React, { PureComponent } from 'react'; -export default function createToolbarAndroidComponent(IconNamePropType, getImageSource) { - return class IconToolbarAndroid extends PureComponent { - render() { - return null; - } - }; -} diff --git a/src/vendor/react-native-vector-icons/lib/tab-bar-item-ios.js b/src/vendor/react-native-vector-icons/lib/tab-bar-item-ios.js index fb53b6d..bca76db 100644 --- a/src/vendor/react-native-vector-icons/lib/tab-bar-item-ios.js +++ b/src/vendor/react-native-vector-icons/lib/tab-bar-item-ios.js @@ -1,18 +1,20 @@ /* eslint-disable react/no-unused-prop-types */ -import isEqual from 'lodash.isequal'; -import pick from 'lodash.pick'; -import React, { PureComponent } from 'react'; -import PropTypes from 'prop-types'; -import { TabBarIOS } from './react-native'; +import isEqual from "lodash.isequal"; +import pick from "lodash.pick"; +import React, { PureComponent } from "react"; +import PropTypes from "prop-types"; +const TabBarIOS = { + Item: function () {}, +}; -const ICON_PROP_NAMES = ['iconName', 'iconSize', 'iconColor']; +const ICON_PROP_NAMES = ["iconName", "iconSize", "iconColor"]; const SELECTED_ICON_PROP_NAMES = [ ...ICON_PROP_NAMES, - 'selectedIconName', - 'selectedIconColor', + "selectedIconName", + "selectedIconColor", ]; -const arePropsEqual = keys => (prevProps, nextProps) => +const arePropsEqual = (keys) => (prevProps, nextProps) => isEqual(pick(prevProps, keys), pick(nextProps, keys)); const areIconPropsEqual = arePropsEqual(ICON_PROP_NAMES);