Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

NativeHeaderToolbar.android.tsx

43 lines1.3 KB

1import type { NativeHeaderToolbar as IosNativeHeaderToolbar } from "./NativeHeaderToolbar";
2​
3function NativeHeaderToolbarRoot(_props: Parameters<typeof IosNativeHeaderToolbar>[0]) {
4 return null;
5}
6​
7function NativeHeaderToolbarButton(_props: Parameters<typeof IosNativeHeaderToolbar.Button>[0]) {
8 return null;
9}
10​
11function NativeHeaderToolbarMenu(_props: Parameters<typeof IosNativeHeaderToolbar.Menu>[0]) {
12 return null;
14​
15function NativeHeaderToolbarMenuAction(
16 _props: Parameters<typeof IosNativeHeaderToolbar.MenuAction>[0],
17) {
18 return null;
20​
21function NativeHeaderToolbarLabel(_props: Parameters<typeof IosNativeHeaderToolbar.Label>[0]) {
22 return null;
24​
25function NativeHeaderToolbarSpacer(_props: Parameters<typeof IosNativeHeaderToolbar.Spacer>[0]) {
26 return null;
28​
29function NativeHeaderToolbarSearchBarSlot() {
30 return null;
32​
33// Native header item factories are iOS-only; Android owns its in-flow header.
34export const NativeHeaderToolbar = Object.assign(NativeHeaderToolbarRoot, {
35 Button: NativeHeaderToolbarButton,
36 Label: NativeHeaderToolbarLabel,
37 Menu: Object.assign(NativeHeaderToolbarMenu, {
38 Action: NativeHeaderToolbarMenuAction,
39 }),
40 MenuAction: NativeHeaderToolbarMenuAction,
41 SearchBarSlot: NativeHeaderToolbarSearchBarSlot,
42 Spacer: NativeHeaderToolbarSpacer,
43});