Skip to content

Commit 6365c55

Browse files
committed
Added isFlat to Button
1 parent 1fd9123 commit 6365c55

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/Button/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { ViewProps, setProps as setViewProps } from "../View";
44

55
interface ButtonProps extends ViewProps {
66
text?: string;
7+
isFlat?: boolean;
78
}
89

910
const setProps = (
@@ -14,6 +15,9 @@ const setProps = (
1415
const setter: ButtonProps = {
1516
set text(buttonText: string) {
1617
widget.setText(buttonText);
18+
},
19+
set isFlat(isFlat: boolean) {
20+
widget.setFlat(isFlat);
1721
}
1822
};
1923
Object.assign(setter, newProps);

0 commit comments

Comments
 (0)