Skip to content

Commit

Permalink
Typing
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciejSWM committed Nov 21, 2023
1 parent 8802892 commit f74f3c3
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 47 deletions.
2 changes: 1 addition & 1 deletion src/components/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type BadgeProps = {
textStyles?: StyleProp<TextStyle>;

/** Callback to be called on onPress */
onPress: (event?: GestureResponderEvent | KeyboardEvent) => void;
onPress?: (event?: GestureResponderEvent | KeyboardEvent) => void;
};

function Badge({success = false, error = false, pressable = false, text, environment = CONST.ENVIRONMENT.DEV, badgeStyles, textStyles, onPress = () => {}}: BadgeProps) {
Expand Down
6 changes: 5 additions & 1 deletion src/components/DisplayNames/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type DisplayNamesProps = {
tooltipEnabled?: boolean;

/** Arbitrary styles of the displayName text */
textStyles: StyleProp<TextStyle>;
textStyles?: StyleProp<TextStyle>;

/**
* Overrides the text that's read by the screen reader when the user interacts with the element. By default, the
Expand All @@ -42,3 +42,7 @@ type DisplayNamesProps = {
};

export default DisplayNamesProps;

export type {
DisplayNameWithTooltip
}
4 changes: 4 additions & 0 deletions src/components/Icon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,7 @@ class Icon extends PureComponent<IconProps> {
}

export default Icon;

export type {
SrcProps
}
Loading

0 comments on commit f74f3c3

Please sign in to comment.