|
|
|
|
|
by bastawhiz
1752 days ago
|
|
It feels very unnatural to me to use React Native semantics and bolt on props for headings and the like; it seems like it would be better to write <H1> than <Text accessibilityRole="heading" accessibilityLevel={1}>, even just from a DX perspective. |
|
const H1 = props => <Text accessibilityRole="heading" accessibilityLevel={1} {...props} />