mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
🤖 Merge PR #47738 react-native-vector-icons: Create Icon.getImageSourceSync types by @mrousavy
This commit is contained in:
parent
0807fca4d5
commit
4271605394
@ -13,6 +13,7 @@ const CustomIconTabBarItem = CustomIcon.TabBarItem;
|
||||
const CustomIconTabBarItemIOS = CustomIcon.TabBarItemIOS;
|
||||
const CustomIconToolbarAndroid = CustomIcon.ToolbarAndroid;
|
||||
const CustomIcongetImageSource = CustomIcon.getImageSource;
|
||||
const CustomIcongetImageSourceSync = CustomIcon.getImageSourceSync;
|
||||
|
||||
class Example extends React.Component {
|
||||
handleButton() {
|
||||
|
||||
@ -38,6 +38,12 @@ export default class FontAwesome5Icon extends Component<
|
||||
color?: string,
|
||||
fa5Style?: ValueOf<typeof FA5Style>
|
||||
): Promise<ImageSource>;
|
||||
static getImageSourceSync(
|
||||
name: string,
|
||||
size?: number,
|
||||
color?: string,
|
||||
fa5Style?: ValueOf<typeof FA5Style>
|
||||
): ImageSource;
|
||||
static loadFont(file?: string): Promise<void>;
|
||||
static hasIcon(name: string): boolean;
|
||||
static ToolbarAndroid: typeof Icon.ToolbarAndroid;
|
||||
|
||||
5
types/react-native-vector-icons/Icon.d.ts
vendored
5
types/react-native-vector-icons/Icon.d.ts
vendored
@ -154,6 +154,11 @@ export class Icon extends React.Component<IconProps, any> {
|
||||
size?: number,
|
||||
color?: string,
|
||||
): Promise<ImageSource>;
|
||||
static getImageSourceSync(
|
||||
name: string,
|
||||
size?: number,
|
||||
color?: string,
|
||||
): ImageSource;
|
||||
static getRawGlyphMap(): { [name: string]: number };
|
||||
static loadFont(
|
||||
file?: string
|
||||
|
||||
@ -20,6 +20,7 @@ const CustomIconTabBarItem = CustomIcon.TabBarItem;
|
||||
const CustomIconTabBarItemIOS = CustomIcon.TabBarItemIOS;
|
||||
const CustomIconToolbarAndroid = CustomIcon.ToolbarAndroid;
|
||||
const CustomIcongetImageSource = CustomIcon.getImageSource;
|
||||
const CustomIcongetImageSourceSync = CustomIcon.getImageSourceSync;
|
||||
|
||||
class Example extends React.Component {
|
||||
handleButton() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user