Remove unsupported event from accessibilityinfo.md#4728
Conversation
The event name 'accessibilityServiceChanged' is not present in react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts It's not supported, therefore the info is misleading
✅ Deploy Preview for react-native ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
@rumeysabulut can you clarify why you say it's not supported? |
cortinico
left a comment
There was a problem hiding this comment.
(see my other comment)
|
We're using TypeScript in our project, and I'm trying to work with the 'accessibilityServiceChanged' event. Although I can retrieve the value, I’m getting a type error because the event name isn’t defined in AccessibilityInfo.d.ts That made me wonder if it’s no longer supported. However, a better approach might be to add accessibilityServiceChanged to the AccessibilityChangeEventName type—unless it's expected to be deprecated, in which case it might be best to avoid relying on it. |
|
I definitely see The types you referred to are the old one which were community contributed and not 100% exact. |
The event name 'accessibilityServiceChanged' is not present in react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts It's not supported, therefore the info is misleading