Skip to content

Commit

Permalink
fix: fix some options not being passed to tab-view. fixes #11904
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Mar 20, 2024
1 parent 31bb8a1 commit 8fcf215
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/react-native-tab-view/src/TabBar.tsx
Expand Up @@ -454,7 +454,7 @@ export function TabBar<T extends Route>({
labelText = getLabelTextDefault({ route }),
accessible = getAccessibleDefault({ route }),
accessibilityLabel = getAccessibilityLabelDefault({ route }),
href,
...rest
} = {
...commonOptions,
...options?.[route.key],
Expand Down Expand Up @@ -525,7 +525,7 @@ export function TabBar<T extends Route>({
: undefined;

const props = {
href,
...rest,
key: route.key,
position,
route,
Expand Down
1 change: 0 additions & 1 deletion packages/react-native-tab-view/src/types.tsx
Expand Up @@ -3,7 +3,6 @@ import type { PagerViewProps } from 'react-native-pager-view';

export type TabDescriptor<T extends Route> = {
accessibilityLabel?: string;
labelStyle?: StyleProp<TextStyle>;
accessible?: boolean;
testID?: string;
labelText?: string;
Expand Down

0 comments on commit 8fcf215

Please sign in to comment.