react-native-windows
Version:
React Native for Windows
32 lines (26 loc) • 790 B
JavaScript
/**
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
* @flow strict-local
* @format
*/
import type {ColorValue} from '../../StyleSheet/StyleSheet';
import type {Double} from '../../Types/CodegenTypes';
import {codegenNativeComponent} from 'react-native';
import type {HostComponent} from '../../../src/private/types/HostComponent';
import type {ViewProps} from '../View/ViewPropTypes';
type NativeProps = $ReadOnly<{|
...ViewProps,
// Props
color?: ?ColorValue,
emSize?: Double,
fontUri: string,
glyph: string,
colorEnabled?: boolean,
// Events
|}>;
type NativeType = HostComponent<NativeProps>;
// $FlowFixMe[nonpolymorphic-type-arg]
export default (codegenNativeComponent<NativeProps>('PLYIcon', {
interfaceOnly: true,
}): NativeType);