Skip to content

Commit 40d8cb4

Browse files
committed
fix prop types for ChipsInput props
1 parent 7dd55d7 commit 40d8cb4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

typings/components/ChipsInput.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import {ReactElement} from 'react';
22
import {StyleProp, TextStyle, ViewStyle, AccessibilityProps, ColorValue} from 'react-native';
33
import {BaseComponent} from '../commons';
44
import {AccessibilityProps} from '../modifiers';
5+
import {TextInputProps} from './Inputs';
56

67
export type Tag =
78
| string
@@ -19,7 +20,7 @@ export type ChipsInputOnChangeTagsAction = 'added' | 'removed';
1920

2021
export type ChipsInputOnChangeTagsFunc = (tags: Tag[], action: ChipsInputOnChangeTagsAction, tag: Tag) => void;
2122

22-
export interface ChipsInputProps {
23+
export interface ChipsInputProps extends TextInputProps {
2324
tags?: Tag[];
2425
getLabel?: (tag?: Tag) => string;
2526
renderTag?: ChipsInputRenderTagFunc;

0 commit comments

Comments
 (0)