UNPKG

@ant-design/react-native

Version:

基于蚂蚁金服移动设计规范的 React Native 组件库

28 lines (27 loc) 911 B
import React from 'react'; import { StyleProp, ViewStyle } from 'react-native'; import { WithThemeStyles } from '../style'; import { TagPropsType } from './PropsType'; import { TagStyle } from './style/index'; export interface TagNativeProps extends TagPropsType, WithThemeStyles<TagStyle> { style?: StyleProp<ViewStyle>; children?: React.ReactNode; } export default class Tag extends React.Component<TagNativeProps, any> { static defaultProps: { disabled: boolean; small: boolean; selected: boolean; closable: boolean; onClose(): void; afterClose(): void; onChange(): void; onLongPress(): void; }; constructor(props: TagNativeProps); UNSAFE_componentWillReceiveProps(nextProps: TagNativeProps): void; onPress: () => void; handleLongPress: () => void; onTagClose: () => void; render(): React.JSX.Element; }