Skip to content
This repository was archived by the owner on Nov 27, 2022. It is now read-only.

Commit b44a4e0

Browse files
fawcilizesatya164
authored andcommitted
fix: add accessibility role and state (#671)
1 parent 8b463fc commit b44a4e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/TabBar.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,8 @@ export default class TabBar<T: *> extends React.Component<Props<T>, State> {
481481
isFocused ? ['button', 'selected'] : 'button'
482482
}
483483
accessibilityComponentType="button"
484+
accessibilityRole="button"
485+
accessibilityStates={isFocused ? ['selected'] : []}
484486
pressColor={this.props.pressColor}
485487
pressOpacity={this.props.pressOpacity}
486488
delayPressIn={0}

0 commit comments

Comments
 (0)