We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fd9123 commit 6365c55Copy full SHA for 6365c55
src/components/Button/index.ts
@@ -4,6 +4,7 @@ import { ViewProps, setProps as setViewProps } from "../View";
4
5
interface ButtonProps extends ViewProps {
6
text?: string;
7
+ isFlat?: boolean;
8
}
9
10
const setProps = (
@@ -14,6 +15,9 @@ const setProps = (
14
15
const setter: ButtonProps = {
16
set text(buttonText: string) {
17
widget.setText(buttonText);
18
+ },
19
+ set isFlat(isFlat: boolean) {
20
+ widget.setFlat(isFlat);
21
22
};
23
Object.assign(setter, newProps);
0 commit comments