react-native-vector-icons
Version:
Customizable Icons for React Native with support for NavBar/TabBar, image source and full styling.
22 lines (20 loc) • 629 B
JavaScript
// @flow
// eslint-disable-next-line import/no-unresolved
import type { TurboModule } from 'react-native/Libraries/TurboModule/RCTExport';
import { TurboModuleRegistry } from 'react-native';
export interface Spec extends TurboModule {
getImageForFont(
fontName: string,
glyph: string,
fontSize: number,
color: number
): Promise<string>;
getImageForFontSync(
fontName: string,
glyph: string,
fontSize: number,
color: number
): string;
loadFontWithFileName(fontFileName: string, extension: string): Promise<void>;
}
export default (TurboModuleRegistry.get<Spec>('RNVectorIcons'): ?Spec);