mirror of
https://github.com/zoriya/expo-vector-icons.git
synced 2026-06-03 10:35:48 +00:00
Publish 12.0.3
This commit is contained in:
Vendored
+38
-22
@@ -1,27 +1,6 @@
|
||||
import React, { ComponentClass } from "react";
|
||||
import { TextProps, TouchableHighlightProps, ViewProps, OpaqueColorValue } from "react-native";
|
||||
import { TextProps, TouchableHighlightProps, ViewProps, OpaqueColorValue, TextStyle, ViewStyle } from "react-native";
|
||||
export { DEFAULT_ICON_COLOR, DEFAULT_ICON_SIZE } from "./vendor/react-native-vector-icons/lib/create-icon-set";
|
||||
export interface IconButtonProps<GLYPHS extends string> extends ViewProps, TouchableHighlightProps {
|
||||
/**
|
||||
* Size of the icon, can also be passed as fontSize in the style object.
|
||||
*
|
||||
* @default 12
|
||||
*/
|
||||
size?: number;
|
||||
/**
|
||||
* Name of the icon to show
|
||||
*
|
||||
* See Icon Explorer app
|
||||
* {@link https://expo.github.io/vector-icons/}
|
||||
*/
|
||||
name: GLYPHS;
|
||||
/**
|
||||
* Color of the icon. Can be a string or OpaqueColorValue (returned from
|
||||
* PlatformColor(..))
|
||||
*
|
||||
*/
|
||||
color?: string | OpaqueColorValue;
|
||||
}
|
||||
export interface IconProps<GLYPHS extends string> extends TextProps {
|
||||
/**
|
||||
* Size of the icon, can also be passed as fontSize in the style object.
|
||||
@@ -43,6 +22,43 @@ export interface IconProps<GLYPHS extends string> extends TextProps {
|
||||
*/
|
||||
color?: string | OpaqueColorValue;
|
||||
}
|
||||
export interface IconButtonProps<GLYPHS extends string> extends IconProps<GLYPHS>, ViewProps, TouchableHighlightProps {
|
||||
/**
|
||||
* Text and icon color
|
||||
* Use iconStyle or nest a Text component if you need different colors.
|
||||
* Can be a string or OpaqueColorValue (returned from PlatformColor(..))
|
||||
*
|
||||
* @default 'white'
|
||||
*/
|
||||
color?: string | OpaqueColorValue;
|
||||
/**
|
||||
* Border radius of the button
|
||||
* Set to 0 to disable.
|
||||
*
|
||||
* @default 5
|
||||
*/
|
||||
borderRadius?: number;
|
||||
/**
|
||||
* Styles applied to the icon only
|
||||
* Good for setting margins or a different color.
|
||||
*
|
||||
* @default {marginRight: 10}
|
||||
*/
|
||||
iconStyle?: TextStyle;
|
||||
/**
|
||||
* Style prop inherited from TextProps and TouchableWithoutFeedbackProperties
|
||||
* Only exist here so we can have ViewStyle or TextStyle
|
||||
*
|
||||
*/
|
||||
style?: ViewStyle | TextStyle;
|
||||
/**
|
||||
* Background color of the button. Can be a string or OpaqueColorValue (returned from
|
||||
* PlatformColor(..))
|
||||
*
|
||||
* @default '#007AFF'
|
||||
*/
|
||||
backgroundColor?: string | OpaqueColorValue;
|
||||
}
|
||||
export declare type GlyphMap<G extends string> = {
|
||||
[K in G]: number;
|
||||
};
|
||||
|
||||
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@expo/vector-icons",
|
||||
"sideEffects": false,
|
||||
"version": "12.0.2",
|
||||
"version": "12.0.3",
|
||||
"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": "build/IconsLazy.js",
|
||||
"module": "build/Icons.js",
|
||||
|
||||
Reference in New Issue
Block a user