File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/react-native-web/src/exports/Dimensions Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -118,8 +118,8 @@ export default class Dimensions {
118
118
}
119
119
120
120
static addEventListener (
121
- type : DimensionEventListenerType ,
122
- handler : ( DimensionsValue ) = > void
121
+ type : DimensionEventListenerType ,
122
+ handler : ( DimensionsValue ) = > void
123
123
) : EventSubscription {
124
124
listeners [ type ] = listeners [ type ] || [ ] ;
125
125
listeners [ type ] . push ( handler ) ;
@@ -132,12 +132,12 @@ export default class Dimensions {
132
132
}
133
133
134
134
static removeEventListener (
135
- type : DimensionEventListenerType ,
136
- handler : ( DimensionsValue ) = > void
135
+ type : DimensionEventListenerType ,
136
+ handler : ( DimensionsValue ) = > void
137
137
) : void {
138
138
if ( Array . isArray ( listeners [ type ] ) ) {
139
139
listeners [ type ] = listeners [ type ] . filter (
140
- ( _handler ) => _handler !== handler
140
+ ( _handler ) => _handler !== handler
141
141
) ;
142
142
}
143
143
}
You can’t perform that action at this time.
0 commit comments