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

Commit

Permalink
fix: update accessibility props for latest RN (#1040)
Browse files Browse the repository at this point in the history
  • Loading branch information
michalchudziak authored Jun 25, 2020
1 parent 1e9c7b3 commit c36a916
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/TabBarItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ export default class TabBarItem<T extends Route> extends React.Component<
accessibilityTraits={isFocused ? ['button', 'selected'] : 'button'}
accessibilityComponentType="button"
accessibilityRole="tab"
accessibilityState={{ selected: isFocused }}
accessibilityStates={isFocused ? ['selected'] : []}
pressColor={pressColor}
pressOpacity={pressOpacity}
Expand Down

0 comments on commit c36a916

Please sign in to comment.