mirror of
https://github.com/zhigang1992/react-native-vector-icons.git
synced 2026-01-12 22:51:07 +08:00
Removes lingering flow type definitions.
This commit is contained in:
@@ -56,7 +56,7 @@ export default function createIconSet(glyphMap, fontFamily, fontFile) {
|
||||
glyph = String.fromCharCode(glyph);
|
||||
}
|
||||
|
||||
const styleDefaults:Object = {
|
||||
const styleDefaults = {
|
||||
fontSize: size,
|
||||
fontWeight: 'normal',
|
||||
fontStyle: 'normal',
|
||||
@@ -76,7 +76,7 @@ export default function createIconSet(glyphMap, fontFamily, fontFile) {
|
||||
|
||||
let imageSourceCache = {};
|
||||
|
||||
function getImageSource(name, size = DEFAULT_ICON_SIZE : number, color = DEFAULT_ICON_COLOR) : Promise {
|
||||
function getImageSource(name, size = DEFAULT_ICON_SIZE, color = DEFAULT_ICON_COLOR) {
|
||||
if (!NativeIconAPI) {
|
||||
if (Platform.OS === 'android') {
|
||||
throw new Error('RNVectorIconsModule not available, did you properly integrate the module?');
|
||||
|
||||
Reference in New Issue
Block a user