Converted to TypeScript

* Added lazy build
This commit is contained in:
Evan Bacon
2019-02-27 15:43:56 -08:00
parent f60615e816
commit 1d47d6d0ef
168 changed files with 1103 additions and 68 deletions

2
.npmignore Normal file
View File

@@ -0,0 +1,2 @@
// @generated by expo-module-scripts
babel.config.js

6
babel.config.build.js Normal file
View File

@@ -0,0 +1,6 @@
module.exports = function(api) {
api.cache(true);
return {
plugins: [['@babel/plugin-transform-modules-commonjs', { lazy: true }]],
};
};

2
babel.config.js Normal file
View File

@@ -0,0 +1,2 @@
// @generated by expo-module-scripts
module.exports = require('expo-module-scripts/babel.config.base');

54
build/AntDesign.d.ts vendored Normal file
View File

@@ -0,0 +1,54 @@
declare const _default: {
new (props: Readonly<{}>): {
_mounted: boolean;
_icon?: any;
state: {
fontIsLoaded: boolean;
};
componentWillMount(): Promise<void>;
componentWillUnmount(): void;
setNativeProps(props: any): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: import("react").ReactNode;
}>;
refs: {
[key: string]: import("react").ReactInstance;
};
};
new (props: {}, context?: any): {
_mounted: boolean;
_icon?: any;
state: {
fontIsLoaded: boolean;
};
componentWillMount(): Promise<void>;
componentWillUnmount(): void;
setNativeProps(props: any): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: import("react").ReactNode;
}>;
refs: {
[key: string]: import("react").ReactInstance;
};
};
propTypes: any;
defaultProps: any;
Button: any;
glyphMap: any;
getRawGlyphMap: () => any;
getFontFamily: () => any;
loadFont: () => Promise<void>;
font: {
[x: number]: any;
};
contextType?: import("react").Context<any> | undefined;
};
export default _default;

5
build/AntDesign.js Normal file
View File

@@ -0,0 +1,5 @@
import createIconSet from './createIconSet';
import font from './fonts/AntDesign.ttf';
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/AntDesign.json';
export default createIconSet(glyphMap, 'anticon', font);
//# sourceMappingURL=AntDesign.js.map

1
build/AntDesign.js.map Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"AntDesign.js","sourceRoot":"","sources":["../src/AntDesign.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,IAAI,MAAM,uBAAuB,CAAC;AACzC,OAAO,QAAQ,MAAM,6DAA6D,CAAC;AAEnF,eAAe,aAAa,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC","sourcesContent":["import createIconSet from './createIconSet';\nimport font from './fonts/AntDesign.ttf';\nimport glyphMap from './vendor/react-native-vector-icons/glyphmaps/AntDesign.json';\n\nexport default createIconSet(glyphMap, 'anticon', font);\n"]}

54
build/Entypo.d.ts vendored Normal file
View File

@@ -0,0 +1,54 @@
declare const _default: {
new (props: Readonly<{}>): {
_mounted: boolean;
_icon?: any;
state: {
fontIsLoaded: boolean;
};
componentWillMount(): Promise<void>;
componentWillUnmount(): void;
setNativeProps(props: any): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: import("react").ReactNode;
}>;
refs: {
[key: string]: import("react").ReactInstance;
};
};
new (props: {}, context?: any): {
_mounted: boolean;
_icon?: any;
state: {
fontIsLoaded: boolean;
};
componentWillMount(): Promise<void>;
componentWillUnmount(): void;
setNativeProps(props: any): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: import("react").ReactNode;
}>;
refs: {
[key: string]: import("react").ReactInstance;
};
};
propTypes: any;
defaultProps: any;
Button: any;
glyphMap: any;
getRawGlyphMap: () => any;
getFontFamily: () => any;
loadFont: () => Promise<void>;
font: {
[x: number]: any;
};
contextType?: import("react").Context<any> | undefined;
};
export default _default;

5
build/Entypo.js Normal file
View File

@@ -0,0 +1,5 @@
import createIconSet from './createIconSet';
import font from './fonts/Entypo.ttf';
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/Entypo.json';
export default createIconSet(glyphMap, 'entypo', font);
//# sourceMappingURL=Entypo.js.map

1
build/Entypo.js.map Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"Entypo.js","sourceRoot":"","sources":["../src/Entypo.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,QAAQ,MAAM,0DAA0D,CAAC;AAEhF,eAAe,aAAa,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC","sourcesContent":["import createIconSet from './createIconSet';\nimport font from './fonts/Entypo.ttf';\nimport glyphMap from './vendor/react-native-vector-icons/glyphmaps/Entypo.json';\n\nexport default createIconSet(glyphMap, 'entypo', font);\n"]}

54
build/EvilIcons.d.ts vendored Normal file
View File

@@ -0,0 +1,54 @@
declare const _default: {
new (props: Readonly<{}>): {
_mounted: boolean;
_icon?: any;
state: {
fontIsLoaded: boolean;
};
componentWillMount(): Promise<void>;
componentWillUnmount(): void;
setNativeProps(props: any): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: import("react").ReactNode;
}>;
refs: {
[key: string]: import("react").ReactInstance;
};
};
new (props: {}, context?: any): {
_mounted: boolean;
_icon?: any;
state: {
fontIsLoaded: boolean;
};
componentWillMount(): Promise<void>;
componentWillUnmount(): void;
setNativeProps(props: any): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: import("react").ReactNode;
}>;
refs: {
[key: string]: import("react").ReactInstance;
};
};
propTypes: any;
defaultProps: any;
Button: any;
glyphMap: any;
getRawGlyphMap: () => any;
getFontFamily: () => any;
loadFont: () => Promise<void>;
font: {
[x: number]: any;
};
contextType?: import("react").Context<any> | undefined;
};
export default _default;

5
build/EvilIcons.js Normal file
View File

@@ -0,0 +1,5 @@
import createIconSet from './createIconSet';
import font from './fonts/EvilIcons.ttf';
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/EvilIcons.json';
export default createIconSet(glyphMap, 'evilicons', font);
//# sourceMappingURL=EvilIcons.js.map

1
build/EvilIcons.js.map Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"EvilIcons.js","sourceRoot":"","sources":["../src/EvilIcons.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,IAAI,MAAM,uBAAuB,CAAC;AACzC,OAAO,QAAQ,MAAM,6DAA6D,CAAC;AAEnF,eAAe,aAAa,CAAC,QAAQ,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC","sourcesContent":["import createIconSet from './createIconSet';\nimport font from './fonts/EvilIcons.ttf';\nimport glyphMap from './vendor/react-native-vector-icons/glyphmaps/EvilIcons.json';\n\nexport default createIconSet(glyphMap, 'evilicons', font);\n"]}

54
build/Feather.d.ts vendored Normal file
View File

@@ -0,0 +1,54 @@
declare const _default: {
new (props: Readonly<{}>): {
_mounted: boolean;
_icon?: any;
state: {
fontIsLoaded: boolean;
};
componentWillMount(): Promise<void>;
componentWillUnmount(): void;
setNativeProps(props: any): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: import("react").ReactNode;
}>;
refs: {
[key: string]: import("react").ReactInstance;
};
};
new (props: {}, context?: any): {
_mounted: boolean;
_icon?: any;
state: {
fontIsLoaded: boolean;
};
componentWillMount(): Promise<void>;
componentWillUnmount(): void;
setNativeProps(props: any): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: import("react").ReactNode;
}>;
refs: {
[key: string]: import("react").ReactInstance;
};
};
propTypes: any;
defaultProps: any;
Button: any;
glyphMap: any;
getRawGlyphMap: () => any;
getFontFamily: () => any;
loadFont: () => Promise<void>;
font: {
[x: number]: any;
};
contextType?: import("react").Context<any> | undefined;
};
export default _default;

5
build/Feather.js Normal file
View File

@@ -0,0 +1,5 @@
import createIconSet from './createIconSet';
import font from './fonts/Feather.ttf';
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/Feather.json';
export default createIconSet(glyphMap, 'feather', font);
//# sourceMappingURL=Feather.js.map

1
build/Feather.js.map Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"Feather.js","sourceRoot":"","sources":["../src/Feather.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,IAAI,MAAM,qBAAqB,CAAC;AACvC,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AAEjF,eAAe,aAAa,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC","sourcesContent":["import createIconSet from './createIconSet';\nimport font from './fonts/Feather.ttf';\nimport glyphMap from './vendor/react-native-vector-icons/glyphmaps/Feather.json';\n\nexport default createIconSet(glyphMap, 'feather', font);\n"]}

54
build/FontAwesome.d.ts vendored Normal file
View File

@@ -0,0 +1,54 @@
declare const _default: {
new (props: Readonly<{}>): {
_mounted: boolean;
_icon?: any;
state: {
fontIsLoaded: boolean;
};
componentWillMount(): Promise<void>;
componentWillUnmount(): void;
setNativeProps(props: any): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: import("react").ReactNode;
}>;
refs: {
[key: string]: import("react").ReactInstance;
};
};
new (props: {}, context?: any): {
_mounted: boolean;
_icon?: any;
state: {
fontIsLoaded: boolean;
};
componentWillMount(): Promise<void>;
componentWillUnmount(): void;
setNativeProps(props: any): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: import("react").ReactNode;
}>;
refs: {
[key: string]: import("react").ReactInstance;
};
};
propTypes: any;
defaultProps: any;
Button: any;
glyphMap: any;
getRawGlyphMap: () => any;
getFontFamily: () => any;
loadFont: () => Promise<void>;
font: {
[x: number]: any;
};
contextType?: import("react").Context<any> | undefined;
};
export default _default;

5
build/FontAwesome.js Normal file
View File

@@ -0,0 +1,5 @@
import createIconSet from './createIconSet';
import font from './fonts/FontAwesome.ttf';
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/FontAwesome.json';
export default createIconSet(glyphMap, 'FontAwesome', font);
//# sourceMappingURL=FontAwesome.js.map

1
build/FontAwesome.js.map Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"FontAwesome.js","sourceRoot":"","sources":["../src/FontAwesome.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,IAAI,MAAM,yBAAyB,CAAC;AAC3C,OAAO,QAAQ,MAAM,+DAA+D,CAAC;AAErF,eAAe,aAAa,CAAC,QAAQ,EAAE,aAAa,EAAE,IAAI,CAAC,CAAC","sourcesContent":["import createIconSet from './createIconSet';\nimport font from './fonts/FontAwesome.ttf';\nimport glyphMap from './vendor/react-native-vector-icons/glyphmaps/FontAwesome.json';\n\nexport default createIconSet(glyphMap, 'FontAwesome', font);\n"]}

5
build/FontAwesome5.d.ts vendored Normal file
View File

@@ -0,0 +1,5 @@
import React from 'react';
export default class FontAwesome5 extends React.Component {
componentDidMount(): void;
render(): null;
}

10
build/FontAwesome5.js Normal file
View File

@@ -0,0 +1,10 @@
import React from 'react';
export default class FontAwesome5 extends React.Component {
componentDidMount() {
console.warn('FontAwesome5 is not supported by @expo/vector-icons: https://github.com/expo/vector-icons/issues/77');
}
render() {
return null;
}
}
//# sourceMappingURL=FontAwesome5.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"FontAwesome5.js","sourceRoot":"","sources":["../src/FontAwesome5.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,KAAK,CAAC,SAAS;IACvD,iBAAiB;QACf,OAAO,CAAC,IAAI,CACV,qGAAqG,CACtG,CAAC;IACJ,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC;IACd,CAAC;CACF","sourcesContent":["import React from 'react';\n\nexport default class FontAwesome5 extends React.Component {\n componentDidMount() {\n console.warn(\n 'FontAwesome5 is not supported by @expo/vector-icons: https://github.com/expo/vector-icons/issues/77'\n );\n }\n\n render() {\n return null;\n }\n}\n"]}

54
build/Foundation.d.ts vendored Normal file
View File

@@ -0,0 +1,54 @@
declare const _default: {
new (props: Readonly<{}>): {
_mounted: boolean;
_icon?: any;
state: {
fontIsLoaded: boolean;
};
componentWillMount(): Promise<void>;
componentWillUnmount(): void;
setNativeProps(props: any): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: import("react").ReactNode;
}>;
refs: {
[key: string]: import("react").ReactInstance;
};
};
new (props: {}, context?: any): {
_mounted: boolean;
_icon?: any;
state: {
fontIsLoaded: boolean;
};
componentWillMount(): Promise<void>;
componentWillUnmount(): void;
setNativeProps(props: any): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: import("react").ReactNode;
}>;
refs: {
[key: string]: import("react").ReactInstance;
};
};
propTypes: any;
defaultProps: any;
Button: any;
glyphMap: any;
getRawGlyphMap: () => any;
getFontFamily: () => any;
loadFont: () => Promise<void>;
font: {
[x: number]: any;
};
contextType?: import("react").Context<any> | undefined;
};
export default _default;

5
build/Foundation.js Normal file
View File

@@ -0,0 +1,5 @@
import createIconSet from './createIconSet';
import font from './fonts/Foundation.ttf';
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/Foundation.json';
export default createIconSet(glyphMap, 'foundation', font);
//# sourceMappingURL=Foundation.js.map

1
build/Foundation.js.map Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"Foundation.js","sourceRoot":"","sources":["../src/Foundation.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,QAAQ,MAAM,8DAA8D,CAAC;AAEpF,eAAe,aAAa,CAAC,QAAQ,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC","sourcesContent":["import createIconSet from './createIconSet';\nimport font from './fonts/Foundation.ttf';\nimport glyphMap from './vendor/react-native-vector-icons/glyphmaps/Foundation.json';\n\nexport default createIconSet(glyphMap, 'foundation', font);\n"]}

15
build/Icons.d.ts vendored Normal file
View File

@@ -0,0 +1,15 @@
export { default as AntDesign } from './AntDesign';
export { default as Entypo } from './Entypo';
export { default as EvilIcons } from './EvilIcons';
export { default as Feather } from './Feather';
export { default as FontAwesome } from './FontAwesome';
export { default as Foundation } from './Foundation';
export { default as Ionicons } from './Ionicons';
export { default as MaterialCommunityIcons } from './MaterialCommunityIcons';
export { default as MaterialIcons } from './MaterialIcons';
export { default as Octicons } from './Octicons';
export { default as SimpleLineIcons } from './SimpleLineIcons';
export { default as Zocial } from './Zocial';
export { default as createIconSet } from './createIconSet';
export { default as createIconSetFromFontello } from './createIconSetFromFontello';
export { default as createIconSetFromIcoMoon } from './createIconSetFromIcoMoon';

16
build/Icons.js Normal file
View File

@@ -0,0 +1,16 @@
export { default as AntDesign } from './AntDesign';
export { default as Entypo } from './Entypo';
export { default as EvilIcons } from './EvilIcons';
export { default as Feather } from './Feather';
export { default as FontAwesome } from './FontAwesome';
export { default as Foundation } from './Foundation';
export { default as Ionicons } from './Ionicons';
export { default as MaterialCommunityIcons } from './MaterialCommunityIcons';
export { default as MaterialIcons } from './MaterialIcons';
export { default as Octicons } from './Octicons';
export { default as SimpleLineIcons } from './SimpleLineIcons';
export { default as Zocial } from './Zocial';
export { default as createIconSet } from './createIconSet';
export { default as createIconSetFromFontello } from './createIconSetFromFontello';
export { default as createIconSetFromIcoMoon } from './createIconSetFromIcoMoon';
//# sourceMappingURL=Icons.js.map

1
build/Icons.js.map Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"Icons.js","sourceRoot":"","sources":["../src/Icons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,4BAA4B,CAAC","sourcesContent":["export { default as AntDesign } from './AntDesign';\nexport { default as Entypo } from './Entypo';\nexport { default as EvilIcons } from './EvilIcons';\nexport { default as Feather } from './Feather';\nexport { default as FontAwesome } from './FontAwesome';\nexport { default as Foundation } from './Foundation';\nexport { default as Ionicons } from './Ionicons';\nexport { default as MaterialCommunityIcons } from './MaterialCommunityIcons';\nexport { default as MaterialIcons } from './MaterialIcons';\nexport { default as Octicons } from './Octicons';\nexport { default as SimpleLineIcons } from './SimpleLineIcons';\nexport { default as Zocial } from './Zocial';\nexport { default as createIconSet } from './createIconSet';\nexport { default as createIconSetFromFontello } from './createIconSetFromFontello';\nexport { default as createIconSetFromIcoMoon } from './createIconSetFromIcoMoon';\n"]}

129
build/IconsLazy.js Normal file
View File

@@ -0,0 +1,129 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "AntDesign", {
enumerable: true,
get: function () {
return _AntDesign.default;
}
});
Object.defineProperty(exports, "Entypo", {
enumerable: true,
get: function () {
return _Entypo.default;
}
});
Object.defineProperty(exports, "EvilIcons", {
enumerable: true,
get: function () {
return _EvilIcons.default;
}
});
Object.defineProperty(exports, "Feather", {
enumerable: true,
get: function () {
return _Feather.default;
}
});
Object.defineProperty(exports, "FontAwesome", {
enumerable: true,
get: function () {
return _FontAwesome.default;
}
});
Object.defineProperty(exports, "Foundation", {
enumerable: true,
get: function () {
return _Foundation.default;
}
});
Object.defineProperty(exports, "Ionicons", {
enumerable: true,
get: function () {
return _Ionicons.default;
}
});
Object.defineProperty(exports, "MaterialCommunityIcons", {
enumerable: true,
get: function () {
return _MaterialCommunityIcons.default;
}
});
Object.defineProperty(exports, "MaterialIcons", {
enumerable: true,
get: function () {
return _MaterialIcons.default;
}
});
Object.defineProperty(exports, "Octicons", {
enumerable: true,
get: function () {
return _Octicons.default;
}
});
Object.defineProperty(exports, "SimpleLineIcons", {
enumerable: true,
get: function () {
return _SimpleLineIcons.default;
}
});
Object.defineProperty(exports, "Zocial", {
enumerable: true,
get: function () {
return _Zocial.default;
}
});
Object.defineProperty(exports, "createIconSet", {
enumerable: true,
get: function () {
return _createIconSet.default;
}
});
Object.defineProperty(exports, "createIconSetFromFontello", {
enumerable: true,
get: function () {
return _createIconSetFromFontello.default;
}
});
Object.defineProperty(exports, "createIconSetFromIcoMoon", {
enumerable: true,
get: function () {
return _createIconSetFromIcoMoon.default;
}
});
var _AntDesign = _interopRequireDefault(require("./AntDesign"));
var _Entypo = _interopRequireDefault(require("./Entypo"));
var _EvilIcons = _interopRequireDefault(require("./EvilIcons"));
var _Feather = _interopRequireDefault(require("./Feather"));
var _FontAwesome = _interopRequireDefault(require("./FontAwesome"));
var _Foundation = _interopRequireDefault(require("./Foundation"));
var _Ionicons = _interopRequireDefault(require("./Ionicons"));
var _MaterialCommunityIcons = _interopRequireDefault(require("./MaterialCommunityIcons"));
var _MaterialIcons = _interopRequireDefault(require("./MaterialIcons"));
var _Octicons = _interopRequireDefault(require("./Octicons"));
var _SimpleLineIcons = _interopRequireDefault(require("./SimpleLineIcons"));
var _Zocial = _interopRequireDefault(require("./Zocial"));
var _createIconSet = _interopRequireDefault(require("./createIconSet"));
var _createIconSetFromFontello = _interopRequireDefault(require("./createIconSetFromFontello"));
var _createIconSetFromIcoMoon = _interopRequireDefault(require("./createIconSetFromIcoMoon"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
//# sourceMappingURL=IconsLazy.js.map

1
build/IconsLazy.js.map Normal file
View File

@@ -0,0 +1 @@
{"version":3,"sources":["../src/Icons.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA","file":"IconsLazy.js","sourcesContent":["export { default as AntDesign } from './AntDesign';\nexport { default as Entypo } from './Entypo';\nexport { default as EvilIcons } from './EvilIcons';\nexport { default as Feather } from './Feather';\nexport { default as FontAwesome } from './FontAwesome';\nexport { default as Foundation } from './Foundation';\nexport { default as Ionicons } from './Ionicons';\nexport { default as MaterialCommunityIcons } from './MaterialCommunityIcons';\nexport { default as MaterialIcons } from './MaterialIcons';\nexport { default as Octicons } from './Octicons';\nexport { default as SimpleLineIcons } from './SimpleLineIcons';\nexport { default as Zocial } from './Zocial';\nexport { default as createIconSet } from './createIconSet';\nexport { default as createIconSetFromFontello } from './createIconSetFromFontello';\nexport { default as createIconSetFromIcoMoon } from './createIconSetFromIcoMoon';\n"]}

54
build/Ionicons.d.ts vendored Normal file
View File

@@ -0,0 +1,54 @@
declare const _default: {
new (props: Readonly<{}>): {
_mounted: boolean;
_icon?: any;
state: {
fontIsLoaded: boolean;
};
componentWillMount(): Promise<void>;
componentWillUnmount(): void;
setNativeProps(props: any): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: import("react").ReactNode;
}>;
refs: {
[key: string]: import("react").ReactInstance;
};
};
new (props: {}, context?: any): {
_mounted: boolean;
_icon?: any;
state: {
fontIsLoaded: boolean;
};
componentWillMount(): Promise<void>;
componentWillUnmount(): void;
setNativeProps(props: any): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: import("react").ReactNode;
}>;
refs: {
[key: string]: import("react").ReactInstance;
};
};
propTypes: any;
defaultProps: any;
Button: any;
glyphMap: any;
getRawGlyphMap: () => any;
getFontFamily: () => any;
loadFont: () => Promise<void>;
font: {
[x: number]: any;
};
contextType?: import("react").Context<any> | undefined;
};
export default _default;

5
build/Ionicons.js Normal file
View File

@@ -0,0 +1,5 @@
import createIconSet from './createIconSet';
import font from './fonts/Ionicons.ttf';
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/Ionicons.json';
export default createIconSet(glyphMap, 'ionicons', font);
//# sourceMappingURL=Ionicons.js.map

1
build/Ionicons.js.map Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"Ionicons.js","sourceRoot":"","sources":["../src/Ionicons.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,IAAI,MAAM,sBAAsB,CAAC;AACxC,OAAO,QAAQ,MAAM,4DAA4D,CAAC;AAElF,eAAe,aAAa,CAAC,QAAQ,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC","sourcesContent":["import createIconSet from './createIconSet';\nimport font from './fonts/Ionicons.ttf';\nimport glyphMap from './vendor/react-native-vector-icons/glyphmaps/Ionicons.json';\n\nexport default createIconSet(glyphMap, 'ionicons', font);\n"]}

54
build/MaterialCommunityIcons.d.ts vendored Normal file
View File

@@ -0,0 +1,54 @@
declare const _default: {
new (props: Readonly<{}>): {
_mounted: boolean;
_icon?: any;
state: {
fontIsLoaded: boolean;
};
componentWillMount(): Promise<void>;
componentWillUnmount(): void;
setNativeProps(props: any): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: import("react").ReactNode;
}>;
refs: {
[key: string]: import("react").ReactInstance;
};
};
new (props: {}, context?: any): {
_mounted: boolean;
_icon?: any;
state: {
fontIsLoaded: boolean;
};
componentWillMount(): Promise<void>;
componentWillUnmount(): void;
setNativeProps(props: any): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: import("react").ReactNode;
}>;
refs: {
[key: string]: import("react").ReactInstance;
};
};
propTypes: any;
defaultProps: any;
Button: any;
glyphMap: any;
getRawGlyphMap: () => any;
getFontFamily: () => any;
loadFont: () => Promise<void>;
font: {
[x: number]: any;
};
contextType?: import("react").Context<any> | undefined;
};
export default _default;

View File

@@ -0,0 +1,5 @@
import createIconSet from './createIconSet';
import font from './fonts/MaterialCommunityIcons.ttf';
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/MaterialCommunityIcons.json';
export default createIconSet(glyphMap, 'material-community', font);
//# sourceMappingURL=MaterialCommunityIcons.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"MaterialCommunityIcons.js","sourceRoot":"","sources":["../src/MaterialCommunityIcons.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,QAAQ,MAAM,0EAA0E,CAAC;AAEhG,eAAe,aAAa,CAAC,QAAQ,EAAE,oBAAoB,EAAE,IAAI,CAAC,CAAC","sourcesContent":["import createIconSet from './createIconSet';\nimport font from './fonts/MaterialCommunityIcons.ttf';\nimport glyphMap from './vendor/react-native-vector-icons/glyphmaps/MaterialCommunityIcons.json';\n\nexport default createIconSet(glyphMap, 'material-community', font);\n"]}

54
build/MaterialIcons.d.ts vendored Normal file
View File

@@ -0,0 +1,54 @@
declare const _default: {
new (props: Readonly<{}>): {
_mounted: boolean;
_icon?: any;
state: {
fontIsLoaded: boolean;
};
componentWillMount(): Promise<void>;
componentWillUnmount(): void;
setNativeProps(props: any): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: import("react").ReactNode;
}>;
refs: {
[key: string]: import("react").ReactInstance;
};
};
new (props: {}, context?: any): {
_mounted: boolean;
_icon?: any;
state: {
fontIsLoaded: boolean;
};
componentWillMount(): Promise<void>;
componentWillUnmount(): void;
setNativeProps(props: any): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: import("react").ReactNode;
}>;
refs: {
[key: string]: import("react").ReactInstance;
};
};
propTypes: any;
defaultProps: any;
Button: any;
glyphMap: any;
getRawGlyphMap: () => any;
getFontFamily: () => any;
loadFont: () => Promise<void>;
font: {
[x: number]: any;
};
contextType?: import("react").Context<any> | undefined;
};
export default _default;

5
build/MaterialIcons.js Normal file
View File

@@ -0,0 +1,5 @@
import createIconSet from './createIconSet';
import font from './fonts/MaterialIcons.ttf';
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/MaterialIcons.json';
export default createIconSet(glyphMap, 'material', font);
//# sourceMappingURL=MaterialIcons.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"MaterialIcons.js","sourceRoot":"","sources":["../src/MaterialIcons.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,IAAI,MAAM,2BAA2B,CAAC;AAC7C,OAAO,QAAQ,MAAM,iEAAiE,CAAC;AAEvF,eAAe,aAAa,CAAC,QAAQ,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC","sourcesContent":["import createIconSet from './createIconSet';\nimport font from './fonts/MaterialIcons.ttf';\nimport glyphMap from './vendor/react-native-vector-icons/glyphmaps/MaterialIcons.json';\n\nexport default createIconSet(glyphMap, 'material', font);\n"]}

54
build/Octicons.d.ts vendored Normal file
View File

@@ -0,0 +1,54 @@
declare const _default: {
new (props: Readonly<{}>): {
_mounted: boolean;
_icon?: any;
state: {
fontIsLoaded: boolean;
};
componentWillMount(): Promise<void>;
componentWillUnmount(): void;
setNativeProps(props: any): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: import("react").ReactNode;
}>;
refs: {
[key: string]: import("react").ReactInstance;
};
};
new (props: {}, context?: any): {
_mounted: boolean;
_icon?: any;
state: {
fontIsLoaded: boolean;
};
componentWillMount(): Promise<void>;
componentWillUnmount(): void;
setNativeProps(props: any): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: import("react").ReactNode;
}>;
refs: {
[key: string]: import("react").ReactInstance;
};
};
propTypes: any;
defaultProps: any;
Button: any;
glyphMap: any;
getRawGlyphMap: () => any;
getFontFamily: () => any;
loadFont: () => Promise<void>;
font: {
[x: number]: any;
};
contextType?: import("react").Context<any> | undefined;
};
export default _default;

5
build/Octicons.js Normal file
View File

@@ -0,0 +1,5 @@
import createIconSet from './createIconSet';
import font from './fonts/Octicons.ttf';
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/Octicons.json';
export default createIconSet(glyphMap, 'octicons', font);
//# sourceMappingURL=Octicons.js.map

1
build/Octicons.js.map Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"Octicons.js","sourceRoot":"","sources":["../src/Octicons.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,IAAI,MAAM,sBAAsB,CAAC;AACxC,OAAO,QAAQ,MAAM,4DAA4D,CAAC;AAElF,eAAe,aAAa,CAAC,QAAQ,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC","sourcesContent":["import createIconSet from './createIconSet';\nimport font from './fonts/Octicons.ttf';\nimport glyphMap from './vendor/react-native-vector-icons/glyphmaps/Octicons.json';\n\nexport default createIconSet(glyphMap, 'octicons', font);\n"]}

54
build/SimpleLineIcons.d.ts vendored Normal file
View File

@@ -0,0 +1,54 @@
declare const _default: {
new (props: Readonly<{}>): {
_mounted: boolean;
_icon?: any;
state: {
fontIsLoaded: boolean;
};
componentWillMount(): Promise<void>;
componentWillUnmount(): void;
setNativeProps(props: any): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: import("react").ReactNode;
}>;
refs: {
[key: string]: import("react").ReactInstance;
};
};
new (props: {}, context?: any): {
_mounted: boolean;
_icon?: any;
state: {
fontIsLoaded: boolean;
};
componentWillMount(): Promise<void>;
componentWillUnmount(): void;
setNativeProps(props: any): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: import("react").ReactNode;
}>;
refs: {
[key: string]: import("react").ReactInstance;
};
};
propTypes: any;
defaultProps: any;
Button: any;
glyphMap: any;
getRawGlyphMap: () => any;
getFontFamily: () => any;
loadFont: () => Promise<void>;
font: {
[x: number]: any;
};
contextType?: import("react").Context<any> | undefined;
};
export default _default;

5
build/SimpleLineIcons.js Normal file
View File

@@ -0,0 +1,5 @@
import createIconSet from './createIconSet';
import font from './fonts/SimpleLineIcons.ttf';
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/SimpleLineIcons.json';
export default createIconSet(glyphMap, 'simple-line-icons', font);
//# sourceMappingURL=SimpleLineIcons.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"SimpleLineIcons.js","sourceRoot":"","sources":["../src/SimpleLineIcons.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,IAAI,MAAM,6BAA6B,CAAC;AAC/C,OAAO,QAAQ,MAAM,mEAAmE,CAAC;AAEzF,eAAe,aAAa,CAAC,QAAQ,EAAE,mBAAmB,EAAE,IAAI,CAAC,CAAC","sourcesContent":["import createIconSet from './createIconSet';\nimport font from './fonts/SimpleLineIcons.ttf';\nimport glyphMap from './vendor/react-native-vector-icons/glyphmaps/SimpleLineIcons.json';\n\nexport default createIconSet(glyphMap, 'simple-line-icons', font);\n"]}

54
build/Zocial.d.ts vendored Normal file
View File

@@ -0,0 +1,54 @@
declare const _default: {
new (props: Readonly<{}>): {
_mounted: boolean;
_icon?: any;
state: {
fontIsLoaded: boolean;
};
componentWillMount(): Promise<void>;
componentWillUnmount(): void;
setNativeProps(props: any): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: import("react").ReactNode;
}>;
refs: {
[key: string]: import("react").ReactInstance;
};
};
new (props: {}, context?: any): {
_mounted: boolean;
_icon?: any;
state: {
fontIsLoaded: boolean;
};
componentWillMount(): Promise<void>;
componentWillUnmount(): void;
setNativeProps(props: any): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: import("react").ReactNode;
}>;
refs: {
[key: string]: import("react").ReactInstance;
};
};
propTypes: any;
defaultProps: any;
Button: any;
glyphMap: any;
getRawGlyphMap: () => any;
getFontFamily: () => any;
loadFont: () => Promise<void>;
font: {
[x: number]: any;
};
contextType?: import("react").Context<any> | undefined;
};
export default _default;

5
build/Zocial.js Normal file
View File

@@ -0,0 +1,5 @@
import createIconSet from './createIconSet';
import font from './fonts/Zocial.ttf';
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/Zocial.json';
export default createIconSet(glyphMap, 'zocial', font);
//# sourceMappingURL=Zocial.js.map

1
build/Zocial.js.map Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"Zocial.js","sourceRoot":"","sources":["../src/Zocial.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,QAAQ,MAAM,0DAA0D,CAAC;AAEhF,eAAe,aAAa,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC","sourcesContent":["import createIconSet from './createIconSet';\nimport font from './fonts/Zocial.ttf';\nimport glyphMap from './vendor/react-native-vector-icons/glyphmaps/Zocial.json';\n\nexport default createIconSet(glyphMap, 'zocial', font);\n"]}

54
build/createIconSet.d.ts vendored Normal file
View File

@@ -0,0 +1,54 @@
import React from 'react';
export default function (glyphMap: any, fontName: any, expoAssetId: any): {
new (props: Readonly<{}>): {
_mounted: boolean;
_icon?: any;
state: {
fontIsLoaded: boolean;
};
componentWillMount(): Promise<void>;
componentWillUnmount(): void;
setNativeProps(props: any): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: React.ReactNode;
}>;
refs: {
[key: string]: React.ReactInstance;
};
};
new (props: {}, context?: any): {
_mounted: boolean;
_icon?: any;
state: {
fontIsLoaded: boolean;
};
componentWillMount(): Promise<void>;
componentWillUnmount(): void;
setNativeProps(props: any): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: React.ReactNode;
}>;
refs: {
[key: string]: React.ReactInstance;
};
};
propTypes: any;
defaultProps: any;
Button: any;
glyphMap: any;
getRawGlyphMap: () => any;
getFontFamily: () => any;
loadFont: () => Promise<void>;
font: {
[x: number]: any;
};
contextType?: React.Context<any> | undefined;
};

52
build/createIconSet.js Normal file
View File

@@ -0,0 +1,52 @@
import React from 'react';
import { Text } from 'react-native';
import { loadAsync, isLoaded } from 'expo-font';
import createIconSet from './vendor/react-native-vector-icons/lib/create-icon-set';
import createIconButtonComponent from './vendor/react-native-vector-icons/lib/icon-button';
export default function (glyphMap, fontName, expoAssetId) {
var _a;
const font = { [fontName]: expoAssetId };
const RNVIconComponent = createIconSet(glyphMap, fontName);
return _a = class Icon extends React.Component {
constructor() {
super(...arguments);
this._mounted = false;
this.state = {
fontIsLoaded: isLoaded(fontName),
};
}
async componentWillMount() {
this._mounted = true;
if (!this.state.fontIsLoaded) {
await loadAsync(font);
this._mounted && this.setState({ fontIsLoaded: true });
}
}
componentWillUnmount() {
this._mounted = false;
}
setNativeProps(props) {
if (this._icon) {
this._icon.setNativeProps(props);
}
}
render() {
if (!this.state.fontIsLoaded) {
return <Text />;
}
return (<RNVIconComponent ref={view => {
this._icon = view;
}} {...this.props}/>);
}
},
_a.propTypes = RNVIconComponent.propTypes,
_a.defaultProps = RNVIconComponent.defaultProps,
_a.Button = createIconButtonComponent(_a),
_a.glyphMap = glyphMap,
_a.getRawGlyphMap = () => glyphMap,
_a.getFontFamily = () => fontName,
_a.loadFont = () => loadAsync(font),
_a.font = font,
_a;
}
//# sourceMappingURL=createIconSet.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"createIconSet.js","sourceRoot":"","sources":["../src/createIconSet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,aAAa,MAAM,wDAAwD,CAAC;AACnF,OAAO,yBAAyB,MAAM,oDAAoD,CAAC;AAE3F,MAAM,CAAC,OAAO,WAAU,QAAQ,EAAE,QAAQ,EAAE,WAAW;;IACrD,MAAM,IAAI,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;IACzC,MAAM,gBAAgB,GAAG,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAE3D,YAAO,MAAM,IAAK,SAAQ,KAAK,CAAC,SAAS;YAAlC;;gBAUL,aAAQ,GAAG,KAAK,CAAC;gBAGjB,UAAK,GAAG;oBACN,YAAY,EAAE,QAAQ,CAAC,QAAQ,CAAC;iBACjC,CAAC;YAkCJ,CAAC;YAhCC,KAAK,CAAC,kBAAkB;gBACtB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;gBACrB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE;oBAC5B,MAAM,SAAS,CAAC,IAAI,CAAC,CAAC;oBACtB,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;iBACxD;YACH,CAAC;YAED,oBAAoB;gBAClB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;YACxB,CAAC;YAED,cAAc,CAAC,KAAK;gBAClB,IAAI,IAAI,CAAC,KAAK,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,SAAS,CAAC,IAAI,CAAE;QACjC,OAAI,GAAG,IAAK;WAyCnB;AACJ,CAAC","sourcesContent":["import React from 'react';\nimport { Text } from 'react-native';\nimport { loadAsync, isLoaded } from 'expo-font';\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 default function(glyphMap, fontName, expoAssetId) {\n const font = { [fontName]: expoAssetId };\n const RNVIconComponent = createIconSet(glyphMap, fontName);\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 = () => loadAsync(font);\n static font = font;\n\n _mounted = false;\n _icon?: any;\n\n state = {\n fontIsLoaded: isLoaded(fontName),\n };\n\n async componentWillMount() {\n this._mounted = true;\n if (!this.state.fontIsLoaded) {\n await 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 <Text />;\n }\n\n return (\n <RNVIconComponent\n ref={view => {\n this._icon = view;\n }}\n {...this.props}\n />\n );\n }\n };\n}\n"]}

1
build/createIconSetFromFontello.d.ts vendored Normal file
View File

@@ -0,0 +1 @@
export default function (config: any, expoFontName: any, expoAssetId: any): any;

View File

@@ -0,0 +1,5 @@
import createIconSetFromFontello from './vendor/react-native-vector-icons/lib/create-icon-set-from-fontello';
export default function (config, expoFontName, expoAssetId) {
return createIconSetFromFontello(config, expoFontName, expoAssetId);
}
//# sourceMappingURL=createIconSetFromFontello.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"createIconSetFromFontello.js","sourceRoot":"","sources":["../src/createIconSetFromFontello.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,MAAM,sEAAsE,CAAC;AAE7G,MAAM,CAAC,OAAO,WAAU,MAAM,EAAE,YAAY,EAAE,WAAW;IACvD,OAAO,yBAAyB,CAAC,MAAM,EAAE,YAAY,EAAE,WAAW,CAAC,CAAC;AACtE,CAAC","sourcesContent":["import createIconSetFromFontello from './vendor/react-native-vector-icons/lib/create-icon-set-from-fontello';\n\nexport default function(config, expoFontName, expoAssetId) {\n return createIconSetFromFontello(config, expoFontName, expoAssetId);\n}\n"]}

1
build/createIconSetFromIcoMoon.d.ts vendored Normal file
View File

@@ -0,0 +1 @@
export default function (config: any, expoFontName: any, expoAssetId: any): any;

View File

@@ -0,0 +1,5 @@
import createIconSetFromIcoMoon from './vendor/react-native-vector-icons/lib/create-icon-set-from-icomoon';
export default function (config, expoFontName, expoAssetId) {
return createIconSetFromIcoMoon(config, expoFontName, expoAssetId);
}
//# sourceMappingURL=createIconSetFromIcoMoon.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"createIconSetFromIcoMoon.js","sourceRoot":"","sources":["../src/createIconSetFromIcoMoon.ts"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,MAAM,qEAAqE,CAAC;AAE3G,MAAM,CAAC,OAAO,WAAU,MAAM,EAAE,YAAY,EAAE,WAAW;IACvD,OAAO,wBAAwB,CAAC,MAAM,EAAE,YAAY,EAAE,WAAW,CAAC,CAAC;AACrE,CAAC","sourcesContent":["import createIconSetFromIcoMoon from './vendor/react-native-vector-icons/lib/create-icon-set-from-icomoon';\n\nexport default function(config, expoFontName, expoAssetId) {\n return createIconSetFromIcoMoon(config, expoFontName, expoAssetId);\n}\n"]}

0
build/iconFontSources.d.ts vendored Normal file
View File

10
build/iconFontSources.js Normal file
View File

@@ -0,0 +1,10 @@
// TODO(brentvatne): implement this plis
// export default function(fontNames) {
// let result = {};
//
// fontNames.forEach(fontName => {
// });
//
// return result;
// }
//# sourceMappingURL=iconFontSources.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"iconFontSources.js","sourceRoot":"","sources":["../src/iconFontSources.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,uCAAuC;AACvC,qBAAqB;AACrB,EAAE;AACF,oCAAoC;AACpC,QAAQ;AACR,EAAE;AACF,mBAAmB;AACnB,IAAI","sourcesContent":["// TODO(brentvatne): implement this plis\n// export default function(fontNames) {\n// let result = {};\n//\n// fontNames.forEach(fontName => {\n// });\n//\n// return result;\n// }\n"]}

View File

@@ -1,47 +0,0 @@
module.exports = {
get AntDesign() {
return require('./AntDesign').default;
},
get Entypo() {
return require('./Entypo').default;
},
get EvilIcons() {
return require('./EvilIcons').default;
},
get Feather() {
return require('./Feather').default;
},
get FontAwesome() {
return require('./FontAwesome').default;
},
get Foundation() {
return require('./Foundation').default;
},
get Ionicons() {
return require('./Ionicons').default;
},
get MaterialCommunityIcons() {
return require('./MaterialCommunityIcons').default;
},
get MaterialIcons() {
return require('./MaterialIcons').default;
},
get Octicons() {
return require('./Octicons').default;
},
get SimpleLineIcons() {
return require('./SimpleLineIcons').default;
},
get Zocial() {
return require('./Zocial').default;
},
get createIconSet() {
return require('./createIconSet').default;
},
get createIconSetFromFontello() {
return require('./createIconSetFromFontello').default;
},
get createIconSetFromIcoMoon() {
return require('./createIconSetFromIcoMoon').default;
},
};

View File

@@ -2,8 +2,19 @@
"name": "@expo/vector-icons",
"version": "9.0.0",
"description": "Built-in support for popular icon fonts and the tooling to create your own Icon components from your font and glyph map. This is a wrapper around react-native-vector-icons to make it compatible with Expo.",
"main": "index.js",
"scripts": {},
"main": "build/IconsLazy.js",
"module": "build/Icons.js",
"types": "build/Icons.d.ts",
"scripts": {
"generate-lazy": "expo-module babel --config-file ./babel.config.build.js --source-maps --out-file build/IconsLazy.js build/Icons.js",
"build": "EXPO_NONINTERACTIVE=1 expo-module build; npm run generate-lazy",
"clean": "expo-module clean",
"lint": "eslint tools",
"test": "expo-module test",
"prepare": "expo-module prepare; npm run generate-lazy",
"prepublishOnly": "expo-module prepublishOnly",
"expo-module": "expo-module"
},
"repository": {
"type": "git",
"url": "https://github.com/expo/vector-icons.git"
@@ -16,6 +27,9 @@
"bugs": {
"url": "https://github.com/expo/vector-icons/issues"
},
"jest": {
"preset": "expo-module-scripts"
},
"homepage": "https://expo.github.io/vector-icons",
"dependencies": {
"lodash": "^4.17.4",
@@ -24,5 +38,7 @@
"peerDependencies": {
"expo-font": "^2.0.0"
},
"devDependencies": {}
"devDependencies": {
"expo-module-scripts": "^1.0.0"
}
}

15
src/Icons.ts Normal file
View File

@@ -0,0 +1,15 @@
export { default as AntDesign } from './AntDesign';
export { default as Entypo } from './Entypo';
export { default as EvilIcons } from './EvilIcons';
export { default as Feather } from './Feather';
export { default as FontAwesome } from './FontAwesome';
export { default as Foundation } from './Foundation';
export { default as Ionicons } from './Ionicons';
export { default as MaterialCommunityIcons } from './MaterialCommunityIcons';
export { default as MaterialIcons } from './MaterialIcons';
export { default as Octicons } from './Octicons';
export { default as SimpleLineIcons } from './SimpleLineIcons';
export { default as Zocial } from './Zocial';
export { default as createIconSet } from './createIconSet';
export { default as createIconSetFromFontello } from './createIconSetFromFontello';
export { default as createIconSetFromIcoMoon } from './createIconSetFromIcoMoon';

View File

@@ -1,6 +1,6 @@
import React from 'react';
import { Text } from 'react-native';
import * as Font from 'expo-font';
import { loadAsync, isLoaded } from 'expo-font';
import createIconSet from './vendor/react-native-vector-icons/lib/create-icon-set';
import createIconButtonComponent from './vendor/react-native-vector-icons/lib/icon-button';
@@ -8,18 +8,27 @@ export default function(glyphMap, fontName, expoAssetId) {
const font = { [fontName]: expoAssetId };
const RNVIconComponent = createIconSet(glyphMap, fontName);
class Icon extends React.Component {
return class Icon extends React.Component {
static propTypes = RNVIconComponent.propTypes;
static defaultProps = RNVIconComponent.defaultProps;
static Button = createIconButtonComponent(Icon);
static glyphMap = glyphMap;
static getRawGlyphMap = () => glyphMap;
static getFontFamily = () => fontName;
static loadFont = () => loadAsync(font);
static font = font;
_mounted = false;
_icon?: any;
state = {
fontIsLoaded: Font.isLoaded(fontName),
fontIsLoaded: isLoaded(fontName),
};
async componentWillMount() {
this._mounted = true;
if (!this.state.fontIsLoaded) {
await Font.loadAsync(font);
await loadAsync(font);
this._mounted && this.setState({ fontIsLoaded: true });
}
}
@@ -48,18 +57,5 @@ export default function(glyphMap, fontName, expoAssetId) {
/>
);
}
}
function getRawGlyphMap() {
return glyphMap;
}
Icon.Button = createIconButtonComponent(Icon);
Icon.glyphMap = glyphMap;
Icon.getRawGlyphMap = getRawGlyphMap;
Icon.getFontFamily = () => fontName;
Icon.loadFont = () => Font.loadAsync(font);
Icon.font = font;
return Icon;
};
}

6
src/typings.d.ts vendored Normal file
View File

@@ -0,0 +1,6 @@
declare module '*.ttf';
declare module '*.json' {
const value: any;
export default value;
}

Some files were not shown because too many files have changed in this diff Show More