When working with accessibilityRole in React Native, I am wondering if there is a way to import all the possible strings instead of typing them out manually.
createAccessibilityRole(parent: Element): string {
if(isLink) return 'link'
return 'text'
}
The current approach mentioned above does not seem to be effective. Is there a method to import the type class or do we need to create it ourselves?