For typescript UnionTypes - that can't be simply replaced by string - foreign data is required, and to make sure the name is unique the interface name is concatted with the function name, so you end up with something like AccessibilityPropsAndroidAccessibilityComponentType. The thing is, this particular type type/field comes from a common ancestor interface and we could shorted this to just AccessibilityComponentType everywhere it's used.
For typescript UnionTypes - that can't be simply replaced by
string
- foreign data is required, and to make sure the name is unique the interface name is concatted with the function name, so you end up with something likeAccessibilityPropsAndroidAccessibilityComponentType
. The thing is, this particular type type/field comes from a common ancestor interface and we could shorted this to justAccessibilityComponentType
everywhere it's used.