@@ -99,7 +99,7 @@ - (instancetype)initWithRef:(NSString *)ref
99
99
_isViewFrameSyncWithCalculated = YES ;
100
100
_ariaHidden = nil ;
101
101
_accessible = nil ;
102
- _userInteractionEnabled = nil ;
102
+ _userInteractionEnabled = YES ;
103
103
_accessibilityHintContent = nil ;
104
104
_cancelsTouchesInView = YES ;
105
105
@@ -121,7 +121,7 @@ - (instancetype)initWithRef:(NSString *)ref
121
121
}
122
122
123
123
if (attributes[@" userInteractionEnabled" ]) {
124
- _userInteractionEnabled = [WXConvert NSString : attributes[@" userInteractionEnabled" ]];
124
+ _userInteractionEnabled = [WXConvert BOOL : attributes[@" userInteractionEnabled" ]];
125
125
}
126
126
127
127
if (attributes[@" ariaHidden" ]) {
@@ -425,7 +425,7 @@ - (UIView *)view
425
425
[_view setIsAccessibilityElement: [WXConvert BOOL: _accessible]];
426
426
}
427
427
if (_userInteractionEnabled) {
428
- [_view setUserInteractionEnabled: [WXConvert BOOL: _userInteractionEnabled] ];
428
+ [_view setUserInteractionEnabled: _userInteractionEnabled];
429
429
}
430
430
if (_ariaHidden) {
431
431
[_view setAccessibilityElementsHidden: [WXConvert BOOL: _ariaHidden]];
@@ -887,8 +887,8 @@ - (void)_configWXComponentA11yWithAttributes:(NSDictionary *)attributes
887
887
[self .view setShouldGroupAccessibilityChildren: [WXConvert BOOL: _groupAccessibilityChildren]];
888
888
}
889
889
if (attributes[@" userInteractionEnabled" ]) {
890
- _userInteractionEnabled = [WXConvert NSString : attributes[@" userInteractionEnabled" ]];
891
- [self .view setUserInteractionEnabled: [WXConvert BOOL: _userInteractionEnabled] ];
890
+ _userInteractionEnabled = [WXConvert BOOL : attributes[@" userInteractionEnabled" ]];
891
+ [self .view setUserInteractionEnabled: _userInteractionEnabled];
892
892
}
893
893
894
894
if (attributes[@" testId" ]) {
0 commit comments