Skip to content

Conversation

@heloise-gllm
Copy link
Contributor

  1. unused name props in tabs.component.tsx deleted

  2. unused type deleted as the RNTabViewProps are used within the View that is returned in the tabs component. :

export interface TabsProps<T extends Route = Route>
  extends CommonStyleProps,
    RNTabViewProps<T> {
  colorScheme?: string;
  children: ReactNode;
  initialPage?: number;
  selectedTab?: number;
  onChangeTab: (index: number) => void;
}
  1. linkedTo props added to TabPanel

@vercel
Copy link

vercel bot commented Jan 30, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-ficus-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 30, 2025 10:56am

import { getThemeColor } from '../../theme/theme.service';

const Tab: FC<TabProps> = ({ name, children, ...rest }) => {
const Tab: FC<TabProps> = ({ children, ...rest }) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused but name is defined here to not be inside rest prop

export interface TabsProps<T extends Route = Route>
extends CommonStyleProps,
RNTabViewProps<T> {
export interface TabsProps extends CommonStyleProps {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to keep RNTabViewProps to be able to pass all existing props of react-native-tab-view to our component

}

export interface TabPanelProps extends CommonStyleProps {
linkedTo: string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how it is used?

@ntorionbearstudio
Copy link
Contributor

Will be fixed in V2

@ntorionbearstudio ntorionbearstudio deleted the fix-tabsprops-type-and-linkedto-props branch January 13, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants