Skip to content

Commit

Permalink
refactor(ui): text - allow text element in children
Browse files Browse the repository at this point in the history
  • Loading branch information
artyorsh authored Sep 23, 2019
1 parent 7fe81f2 commit a9904fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/framework/ui/text/text.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ import {
StyledComponentProps,
} from '@kitten/theme';

type ChildElement = string | TextElement;

interface ComponentProps {
category?: string;
status?: string;
children?: string;
children?: ChildElement | ChildElement[];
}

export type TextProps = StyledComponentProps & RNTextProps & ComponentProps;
Expand Down

0 comments on commit a9904fc

Please sign in to comment.