We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
display
_viewConfig
1 parent 307e5ff commit 03cd79eCopy full SHA for 03cd79e
src/components/Screen.tsx
@@ -33,6 +33,13 @@ interface ViewConfig extends View {
33
};
34
35
36
+ _viewConfig: {
37
+ validAttributes: {
38
+ style: {
39
+ display: boolean;
40
+ };
41
42
43
}
44
45
export class InnerScreen extends React.Component<ScreenProps> {
@@ -105,6 +112,12 @@ export class InnerScreen extends React.Component<ScreenProps> {
105
112
display: false,
106
113
107
114
this.setRef(ref);
115
+ } else if (ref?._viewConfig?.validAttributes?.style) {
116
+ ref._viewConfig.validAttributes.style = {
117
+ ...ref._viewConfig.validAttributes.style,
118
+ display: false,
119
120
+ this.setRef(ref);
108
121
109
122
110
123
0 commit comments