Skip to content

Commit f456e20

Browse files
committed
feat: add Embedded tab to Main component in example app
1 parent f81b52d commit f456e20

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

example/src/components/App/Main.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { User } from '../User';
88
import { Inbox } from '../Inbox';
99
import { useIterableApp } from '../../hooks';
1010
import { Commerce } from '../Commerce';
11+
import { Embedded } from '../Embedded';
1112

1213
const Tab = createBottomTabNavigator<MainScreenParamList>();
1314

@@ -44,6 +45,13 @@ export const Main = () => {
4445
},
4546
})}
4647
/>
48+
<Tab.Screen
49+
name={Route.Embedded}
50+
component={Embedded}
51+
listeners={() => ({
52+
tabPress: () => setIsInboxTab(false),
53+
})}
54+
/>
4755
<Tab.Screen
4856
name={Route.Commerce}
4957
component={Commerce}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
export * from './Embedded';
2-
export { default } from './Embedded';

0 commit comments

Comments
 (0)