Skip to content

Commit

Permalink
fix: linter (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
okwasniewski authored Oct 2, 2024
1 parent 3197715 commit f121778
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 6 additions & 0 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ import FourTabs from './Examples/FourTabs';
const examples = [
{ component: ThreeTabs, name: 'Three Tabs' },
{ component: FourTabs, name: 'Four Tabs' },
{
component: FourTabs,
name: 'Four Tabs - No header',
screenOptions: { headerShown: false },
},
{ component: JSBottomTabs, name: 'JS Bottom Tabs' },
];

Expand Down Expand Up @@ -91,6 +96,7 @@ export default function Navigation() {
key={index}
name={example.name}
component={example.component}
options={example.screenOptions}
/>
))}
</NavigationStack.Navigator>
Expand Down
2 changes: 1 addition & 1 deletion example/src/Examples/FourTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Albums } from '../Screens/Albums';
import { Contacts } from '../Screens/Contacts';
import { Chat } from '../Screens/Chat';

export default function ThreeTabs() {
export default function FourTabs() {
const [index, setIndex] = useState(0);
const [routes] = useState([
{ key: 'article', title: 'Article', icon: 'document.fill', badge: '!' },
Expand Down
2 changes: 1 addition & 1 deletion src/TabViewNativeComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export type OnPageSelectedEventData = Readonly<{
export type TabViewItems = ReadonlyArray<{
key: string;
title: string;
icon: string;
icon?: string;
badge?: string;
}>;

Expand Down
6 changes: 0 additions & 6 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import TabView from './TabView';
import type {
TabViewItems,
OnPageSelectedEventData,
} from './TabViewNativeComponent';

export type { TabViewItems, OnPageSelectedEventData };

export { SceneMap } from './SceneMap';

Expand Down

0 comments on commit f121778

Please sign in to comment.