@onekeyfe/react-native-bottom-tabs 6.7.0-alpha.430 → 6.7.0-alpha.435

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,13 @@
1
- import { codegenNativeComponent } from 'react-native';
2
- import type { ViewProps } from 'react-native';
3
- import type {
4
- DirectEventHandler,
5
- Double,
6
- } from 'react-native/Libraries/Types/CodegenTypes';
1
+ import {
2
+ codegenNativeComponent,
3
+ type CodegenTypes,
4
+ type ViewProps,
5
+ } from 'react-native';
6
+
7
7
 
8
8
  export type OnNativeLayout = Readonly<{
9
- width: Double;
10
- height: Double;
9
+ width: CodegenTypes.Double;
10
+ height: CodegenTypes.Double;
11
11
  }>;
12
12
 
13
13
  export type OnPlacementChanged = Readonly<{
@@ -15,8 +15,8 @@ export type OnPlacementChanged = Readonly<{
15
15
  }>;
16
16
 
17
17
  export interface BottomAccessoryViewNativeProps extends ViewProps {
18
- onNativeLayout?: DirectEventHandler<OnNativeLayout>;
19
- onPlacementChanged?: DirectEventHandler<OnPlacementChanged>;
18
+ onNativeLayout?: CodegenTypes.DirectEventHandler<OnNativeLayout>;
19
+ onPlacementChanged?: CodegenTypes.DirectEventHandler<OnPlacementChanged>;
20
20
  }
21
21
 
22
22
  export default codegenNativeComponent<BottomAccessoryViewNativeProps>(
@@ -1,17 +1,17 @@
1
- import { codegenNativeComponent, type ViewProps } from "react-native";
2
- import type {
3
- DirectEventHandler,
4
- Double,
5
- WithDefault,
6
- } from "react-native/Libraries/Types/CodegenTypes";
1
+ import {
2
+ codegenNativeComponent,
3
+ type CodegenTypes,
4
+ type ViewProps,
5
+ } from "react-native";
6
+
7
7
 
8
8
  export interface BottomTabsDrawerNativeProps extends ViewProps {
9
- enabled?: WithDefault<boolean, false>;
10
- open?: WithDefault<boolean, false>;
11
- swipeEnabled?: WithDefault<boolean, false>;
12
- hapticFeedbackEnabled?: WithDefault<boolean, false>;
13
- bottomBarHeight?: Double;
14
- onDrawerOpenChange?: DirectEventHandler<Readonly<{ open: boolean }>>;
9
+ enabled?: CodegenTypes.WithDefault<boolean, false>;
10
+ open?: CodegenTypes.WithDefault<boolean, false>;
11
+ swipeEnabled?: CodegenTypes.WithDefault<boolean, false>;
12
+ hapticFeedbackEnabled?: CodegenTypes.WithDefault<boolean, false>;
13
+ bottomBarHeight?: CodegenTypes.Double;
14
+ onDrawerOpenChange?: CodegenTypes.DirectEventHandler<Readonly<{ open: boolean }>>;
15
15
  }
16
16
 
17
17
  export default codegenNativeComponent<BottomTabsDrawerNativeProps>(
@@ -1,12 +1,11 @@
1
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
2
- import type { ColorValue, ProcessedColorValue, ViewProps } from 'react-native';
3
- import type {
4
- DirectEventHandler,
5
- Double,
6
- Int32,
7
- WithDefault,
8
- } from 'react-native/Libraries/Types/CodegenTypes';
9
- //@ts-ignore
1
+ import {
2
+ codegenNativeComponent,
3
+ type CodegenTypes,
4
+ type ColorValue,
5
+ type ProcessedColorValue,
6
+ type ViewProps,
7
+ } from 'react-native';
8
+ // @ts-ignore
10
9
  import type { ImageSource } from 'react-native/Libraries/Image/ImageSource';
11
10
 
12
11
  export type OnPageSelectedEventData = Readonly<{
@@ -14,12 +13,12 @@ export type OnPageSelectedEventData = Readonly<{
14
13
  }>;
15
14
 
16
15
  export type OnTabBarMeasured = Readonly<{
17
- height: Int32;
16
+ height: CodegenTypes.Int32;
18
17
  }>;
19
18
 
20
19
  export type OnNativeLayout = Readonly<{
21
- width: Double;
22
- height: Double;
20
+ width: CodegenTypes.Double;
21
+ height: CodegenTypes.Double;
23
22
  }>;
24
23
 
25
24
  // Where the system draws the tab bar: 'bottom', or 'leading' / 'trailing' for
@@ -47,10 +46,10 @@ export type BottomTabsItems = ReadonlyArray<{
47
46
  export interface BottomTabsNativeProps extends ViewProps {
48
47
  items: BottomTabsItems;
49
48
  selectedPage: string;
50
- onPageSelected?: DirectEventHandler<OnPageSelectedEventData>;
51
- onTabDoublePress?: DirectEventHandler<OnPageSelectedEventData>;
52
- onTabBarMeasured?: DirectEventHandler<OnTabBarMeasured>;
53
- onNativeLayout?: DirectEventHandler<OnNativeLayout>;
49
+ onPageSelected?: CodegenTypes.DirectEventHandler<OnPageSelectedEventData>;
50
+ onTabDoublePress?: CodegenTypes.DirectEventHandler<OnPageSelectedEventData>;
51
+ onTabBarMeasured?: CodegenTypes.DirectEventHandler<OnTabBarMeasured>;
52
+ onNativeLayout?: CodegenTypes.DirectEventHandler<OnNativeLayout>;
54
53
  icons?: ReadonlyArray<ImageSource>;
55
54
  selectedIcons?: ReadonlyArray<ImageSource>;
56
55
  tabBarHidden?: boolean;
@@ -58,8 +57,8 @@ export interface BottomTabsNativeProps extends ViewProps {
58
57
  sidebarAdaptable?: boolean;
59
58
  scrollEdgeAppearance?: string;
60
59
  barTintColor?: ColorValue;
61
- translucent?: WithDefault<boolean, true>;
62
- androidBottomBlurEnabled?: WithDefault<boolean, false>;
60
+ translucent?: CodegenTypes.WithDefault<boolean, true>;
61
+ androidBottomBlurEnabled?: CodegenTypes.WithDefault<boolean, false>;
63
62
  rippleColor?: ColorValue;
64
63
  activeTintColor?: ColorValue;
65
64
  inactiveTintColor?: ColorValue;
@@ -69,15 +68,15 @@ export interface BottomTabsNativeProps extends ViewProps {
69
68
  minimizeBehavior?: string;
70
69
  fontFamily?: string;
71
70
  fontWeight?: string;
72
- fontSize?: Int32;
71
+ fontSize?: CodegenTypes.Int32;
73
72
  ignoreBottomInsets?: boolean;
74
- androidTabBarStyle?: WithDefault<'default' | 'floating', 'default'>;
75
- ignoreKeyboardInsets?: WithDefault<boolean, true>;
76
- onTabBarPlacementChange?: DirectEventHandler<OnTabBarPlacementChange>;
73
+ androidTabBarStyle?: CodegenTypes.WithDefault<'default' | 'floating', 'default'>;
74
+ ignoreKeyboardInsets?: CodegenTypes.WithDefault<boolean, true>;
75
+ onTabBarPlacementChange?: CodegenTypes.DirectEventHandler<OnTabBarPlacementChange>;
77
76
  // A round button drawn above a vertical tab bar; iOS only.
78
77
  sideAccessoryIcon?: ImageSource;
79
78
  sideAccessoryLabel?: string;
80
- onSideAccessoryPress?: DirectEventHandler<OnSideAccessoryPress>;
79
+ onSideAccessoryPress?: CodegenTypes.DirectEventHandler<OnSideAccessoryPress>;
81
80
  }
82
81
 
83
82
  export default codegenNativeComponent<BottomTabsNativeProps>('RNBottomTabsView');
@@ -4,5 +4,5 @@ export interface RNBottomTabsAccessoryViewProps {
4
4
  placement: 'inline' | 'expanded' | 'none';
5
5
  }) => React.ReactNode;
6
6
  }
7
- export declare const BottomAccessoryView: (props: RNBottomTabsAccessoryViewProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const BottomAccessoryView: (props: RNBottomTabsAccessoryViewProps) => React.JSX.Element;
8
8
  //# sourceMappingURL=BottomAccessoryView.d.ts.map
@@ -1,16 +1,15 @@
1
- import type { ViewProps } from 'react-native';
2
- import type { DirectEventHandler, Double } from 'react-native/Libraries/Types/CodegenTypes';
1
+ import { type CodegenTypes, type ViewProps } from 'react-native';
3
2
  export type OnNativeLayout = Readonly<{
4
- width: Double;
5
- height: Double;
3
+ width: CodegenTypes.Double;
4
+ height: CodegenTypes.Double;
6
5
  }>;
7
6
  export type OnPlacementChanged = Readonly<{
8
7
  placement: string;
9
8
  }>;
10
9
  export interface BottomAccessoryViewNativeProps extends ViewProps {
11
- onNativeLayout?: DirectEventHandler<OnNativeLayout>;
12
- onPlacementChanged?: DirectEventHandler<OnPlacementChanged>;
10
+ onNativeLayout?: CodegenTypes.DirectEventHandler<OnNativeLayout>;
11
+ onPlacementChanged?: CodegenTypes.DirectEventHandler<OnPlacementChanged>;
13
12
  }
14
- declare const _default: import("react-native/types_generated/Libraries/Utilities/codegenNativeComponent").NativeComponentType<BottomAccessoryViewNativeProps>;
13
+ declare const _default: import("react-native").HostComponent<BottomAccessoryViewNativeProps>;
15
14
  export default _default;
16
15
  //# sourceMappingURL=BottomAccessoryViewNativeComponent.d.ts.map
@@ -236,6 +236,6 @@ interface Props<Route extends BaseRoute> {
236
236
  */
237
237
  onSideAccessoryPress?: () => void;
238
238
  }
239
- declare const BottomTabs: <Route extends BaseRoute>({ navigationState, renderScene, renderLazyPlaceholder, onIndexChange, onTabDoublePress, renderDrawerContent, drawerOpen, drawerSwipeEnabled, onDrawerOpenChange, rippleColor, tabBarActiveTintColor: activeTintColor, tabBarInactiveTintColor: inactiveTintColor, getBadge, getBadgeBackgroundColor, getBadgeTextColor, getLazy, getLabelText, getIcon, getHidden, getActiveTintColor, getTestID, getRole, getSceneStyle, getPreventsDefault, hapticFeedbackEnabled, labeled, getFreezeOnBlur, tabBar: renderCustomTabBar, tabBarStyle, tabLabelStyle, renderBottomAccessoryView, activeIndicatorColor, androidBottomBlurEnabled, delayedFreeze, onTabBarPlacementChange, sideAccessoryIcon, sideAccessoryLabel, onSideAccessoryPress, ...props }: Props<Route>) => import("react/jsx-runtime").JSX.Element;
239
+ declare const BottomTabs: <Route extends BaseRoute>({ navigationState, renderScene, renderLazyPlaceholder, onIndexChange, onTabDoublePress, renderDrawerContent, drawerOpen, drawerSwipeEnabled, onDrawerOpenChange, rippleColor, tabBarActiveTintColor: activeTintColor, tabBarInactiveTintColor: inactiveTintColor, getBadge, getBadgeBackgroundColor, getBadgeTextColor, getLazy, getLabelText, getIcon, getHidden, getActiveTintColor, getTestID, getRole, getSceneStyle, getPreventsDefault, hapticFeedbackEnabled, labeled, getFreezeOnBlur, tabBar: renderCustomTabBar, tabBarStyle, tabLabelStyle, renderBottomAccessoryView, activeIndicatorColor, androidBottomBlurEnabled, delayedFreeze, onTabBarPlacementChange, sideAccessoryIcon, sideAccessoryLabel, onSideAccessoryPress, ...props }: Props<Route>) => React.JSX.Element;
240
240
  export default BottomTabs;
241
241
  //# sourceMappingURL=BottomTabs.d.ts.map
@@ -1,15 +1,14 @@
1
- import { type ViewProps } from "react-native";
2
- import type { DirectEventHandler, Double, WithDefault } from "react-native/Libraries/Types/CodegenTypes";
1
+ import { type CodegenTypes, type ViewProps } from "react-native";
3
2
  export interface BottomTabsDrawerNativeProps extends ViewProps {
4
- enabled?: WithDefault<boolean, false>;
5
- open?: WithDefault<boolean, false>;
6
- swipeEnabled?: WithDefault<boolean, false>;
7
- hapticFeedbackEnabled?: WithDefault<boolean, false>;
8
- bottomBarHeight?: Double;
9
- onDrawerOpenChange?: DirectEventHandler<Readonly<{
3
+ enabled?: CodegenTypes.WithDefault<boolean, false>;
4
+ open?: CodegenTypes.WithDefault<boolean, false>;
5
+ swipeEnabled?: CodegenTypes.WithDefault<boolean, false>;
6
+ hapticFeedbackEnabled?: CodegenTypes.WithDefault<boolean, false>;
7
+ bottomBarHeight?: CodegenTypes.Double;
8
+ onDrawerOpenChange?: CodegenTypes.DirectEventHandler<Readonly<{
10
9
  open: boolean;
11
10
  }>>;
12
11
  }
13
- declare const _default: import("react-native/types_generated/Libraries/Utilities/codegenNativeComponent").NativeComponentType<BottomTabsDrawerNativeProps>;
12
+ declare const _default: import("react-native").HostComponent<BottomTabsDrawerNativeProps>;
14
13
  export default _default;
15
14
  //# sourceMappingURL=BottomTabsDrawerNativeComponent.d.ts.map
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import type { BottomTabsDrawerNativeProps } from "./BottomTabsDrawerNativeComponent";
3
- export default function BottomTabsDrawerWeb({ children, }: React.PropsWithChildren<BottomTabsDrawerNativeProps>): import("react/jsx-runtime").JSX.Element;
3
+ export default function BottomTabsDrawerWeb({ children, }: React.PropsWithChildren<BottomTabsDrawerNativeProps>): React.JSX.Element;
4
4
  //# sourceMappingURL=BottomTabsDrawerNativeComponent.web.d.ts.map
@@ -1,15 +1,14 @@
1
- import type { ColorValue, ProcessedColorValue, ViewProps } from 'react-native';
2
- import type { DirectEventHandler, Double, Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
1
+ import { type CodegenTypes, type ColorValue, type ProcessedColorValue, type ViewProps } from 'react-native';
3
2
  import type { ImageSource } from 'react-native/Libraries/Image/ImageSource';
4
3
  export type OnPageSelectedEventData = Readonly<{
5
4
  key: string;
6
5
  }>;
7
6
  export type OnTabBarMeasured = Readonly<{
8
- height: Int32;
7
+ height: CodegenTypes.Int32;
9
8
  }>;
10
9
  export type OnNativeLayout = Readonly<{
11
- width: Double;
12
- height: Double;
10
+ width: CodegenTypes.Double;
11
+ height: CodegenTypes.Double;
13
12
  }>;
14
13
  export type OnTabBarPlacementChange = Readonly<{
15
14
  placement: string;
@@ -31,10 +30,10 @@ export type BottomTabsItems = ReadonlyArray<{
31
30
  export interface BottomTabsNativeProps extends ViewProps {
32
31
  items: BottomTabsItems;
33
32
  selectedPage: string;
34
- onPageSelected?: DirectEventHandler<OnPageSelectedEventData>;
35
- onTabDoublePress?: DirectEventHandler<OnPageSelectedEventData>;
36
- onTabBarMeasured?: DirectEventHandler<OnTabBarMeasured>;
37
- onNativeLayout?: DirectEventHandler<OnNativeLayout>;
33
+ onPageSelected?: CodegenTypes.DirectEventHandler<OnPageSelectedEventData>;
34
+ onTabDoublePress?: CodegenTypes.DirectEventHandler<OnPageSelectedEventData>;
35
+ onTabBarMeasured?: CodegenTypes.DirectEventHandler<OnTabBarMeasured>;
36
+ onNativeLayout?: CodegenTypes.DirectEventHandler<OnNativeLayout>;
38
37
  icons?: ReadonlyArray<ImageSource>;
39
38
  selectedIcons?: ReadonlyArray<ImageSource>;
40
39
  tabBarHidden?: boolean;
@@ -42,8 +41,8 @@ export interface BottomTabsNativeProps extends ViewProps {
42
41
  sidebarAdaptable?: boolean;
43
42
  scrollEdgeAppearance?: string;
44
43
  barTintColor?: ColorValue;
45
- translucent?: WithDefault<boolean, true>;
46
- androidBottomBlurEnabled?: WithDefault<boolean, false>;
44
+ translucent?: CodegenTypes.WithDefault<boolean, true>;
45
+ androidBottomBlurEnabled?: CodegenTypes.WithDefault<boolean, false>;
47
46
  rippleColor?: ColorValue;
48
47
  activeTintColor?: ColorValue;
49
48
  inactiveTintColor?: ColorValue;
@@ -53,14 +52,14 @@ export interface BottomTabsNativeProps extends ViewProps {
53
52
  minimizeBehavior?: string;
54
53
  fontFamily?: string;
55
54
  fontWeight?: string;
56
- fontSize?: Int32;
55
+ fontSize?: CodegenTypes.Int32;
57
56
  ignoreBottomInsets?: boolean;
58
- androidTabBarStyle?: WithDefault<'default' | 'floating', 'default'>;
59
- ignoreKeyboardInsets?: WithDefault<boolean, true>;
60
- onTabBarPlacementChange?: DirectEventHandler<OnTabBarPlacementChange>;
57
+ androidTabBarStyle?: CodegenTypes.WithDefault<'default' | 'floating', 'default'>;
58
+ ignoreKeyboardInsets?: CodegenTypes.WithDefault<boolean, true>;
59
+ onTabBarPlacementChange?: CodegenTypes.DirectEventHandler<OnTabBarPlacementChange>;
61
60
  sideAccessoryIcon?: ImageSource;
62
61
  sideAccessoryLabel?: string;
63
- onSideAccessoryPress?: DirectEventHandler<OnSideAccessoryPress>;
62
+ onSideAccessoryPress?: CodegenTypes.DirectEventHandler<OnSideAccessoryPress>;
64
63
  }
65
64
  declare const _default: import("react-native").HostComponent<BottomTabsNativeProps>;
66
65
  export default _default;
@@ -4,6 +4,6 @@ interface FreezeWrapperProps {
4
4
  delayedFreeze?: boolean;
5
5
  children: React.ReactNode;
6
6
  }
7
- declare function DelayedFreeze({ freeze, delayedFreeze, children }: FreezeWrapperProps): import("react/jsx-runtime").JSX.Element;
7
+ declare function DelayedFreeze({ freeze, delayedFreeze, children }: FreezeWrapperProps): React.JSX.Element;
8
8
  export default DelayedFreeze;
9
9
  //# sourceMappingURL=DelayedFreeze.d.ts.map
@@ -5,6 +5,6 @@ type SceneProps = {
5
5
  };
6
6
  export declare function SceneMap<T>(scenes: {
7
7
  [key: string]: React.ComponentType<T>;
8
- }): ({ route, jumpTo }: SceneProps) => import("react/jsx-runtime").JSX.Element | null;
8
+ }): ({ route, jumpTo }: SceneProps) => React.JSX.Element | null;
9
9
  export {};
10
10
  //# sourceMappingURL=SceneMap.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-bottom-tabs",
3
- "version": "6.7.0-alpha.430",
3
+ "version": "6.7.0-alpha.435",
4
4
  "description": "Native bottom tabs (tab bar + scene container) for React Native on iOS and Android",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/module/index.js",
@@ -64,14 +64,14 @@
64
64
  "access": "public"
65
65
  },
66
66
  "devDependencies": {
67
- "@types/react": "^19.2.0",
68
- "react": "19.2.3",
69
- "react-native": "patch:react-native@npm%3A0.86.2#~/.yarn/patches/react-native-npm-0.86.2-c9d546616f.patch",
67
+ "@types/react": "^19.3.0",
68
+ "react": "19.3.0",
69
+ "react-native": "patch:react-native@npm%3A0.88.0#~/.yarn/patches/react-native-npm-0.88.0-60c6201dd2.patch",
70
70
  "react-native-builder-bob": "^0.40.13",
71
71
  "typescript": "^5.9.2"
72
72
  },
73
73
  "peerDependencies": {
74
- "@onekeyfe/react-native-image": "6.7.0-alpha.430",
74
+ "@onekeyfe/react-native-image": "6.7.0-alpha.435",
75
75
  "react": "*",
76
76
  "react-native": "*"
77
77
  },
@@ -1,13 +1,13 @@
1
- import { codegenNativeComponent } from 'react-native';
2
- import type { ViewProps } from 'react-native';
3
- import type {
4
- DirectEventHandler,
5
- Double,
6
- } from 'react-native/Libraries/Types/CodegenTypes';
1
+ import {
2
+ codegenNativeComponent,
3
+ type CodegenTypes,
4
+ type ViewProps,
5
+ } from 'react-native';
6
+
7
7
 
8
8
  export type OnNativeLayout = Readonly<{
9
- width: Double;
10
- height: Double;
9
+ width: CodegenTypes.Double;
10
+ height: CodegenTypes.Double;
11
11
  }>;
12
12
 
13
13
  export type OnPlacementChanged = Readonly<{
@@ -15,8 +15,8 @@ export type OnPlacementChanged = Readonly<{
15
15
  }>;
16
16
 
17
17
  export interface BottomAccessoryViewNativeProps extends ViewProps {
18
- onNativeLayout?: DirectEventHandler<OnNativeLayout>;
19
- onPlacementChanged?: DirectEventHandler<OnPlacementChanged>;
18
+ onNativeLayout?: CodegenTypes.DirectEventHandler<OnNativeLayout>;
19
+ onPlacementChanged?: CodegenTypes.DirectEventHandler<OnPlacementChanged>;
20
20
  }
21
21
 
22
22
  export default codegenNativeComponent<BottomAccessoryViewNativeProps>(
@@ -392,7 +392,9 @@ const BottomTabs = <Route extends BaseRoute>({
392
392
  }: Props<Route>) => {
393
393
  // @ts-ignore
394
394
  const focusedKey = navigationState.routes[navigationState.index].key;
395
- const customTabBarWrapperRef = useRef<View>(null) as React.RefObject<any>;
395
+ const customTabBarWrapperRef = useRef<React.ComponentRef<typeof View>>(
396
+ null
397
+ ) as React.RefObject<any>;
396
398
  const nativeBottomTabsRef =
397
399
  useRef<React.ElementRef<typeof NativeBottomTabs>>(null);
398
400
  const [nativeTabBarHeight, setNativeTabBarHeight] = React.useState(0);
@@ -1,17 +1,17 @@
1
- import { codegenNativeComponent, type ViewProps } from "react-native";
2
- import type {
3
- DirectEventHandler,
4
- Double,
5
- WithDefault,
6
- } from "react-native/Libraries/Types/CodegenTypes";
1
+ import {
2
+ codegenNativeComponent,
3
+ type CodegenTypes,
4
+ type ViewProps,
5
+ } from "react-native";
6
+
7
7
 
8
8
  export interface BottomTabsDrawerNativeProps extends ViewProps {
9
- enabled?: WithDefault<boolean, false>;
10
- open?: WithDefault<boolean, false>;
11
- swipeEnabled?: WithDefault<boolean, false>;
12
- hapticFeedbackEnabled?: WithDefault<boolean, false>;
13
- bottomBarHeight?: Double;
14
- onDrawerOpenChange?: DirectEventHandler<Readonly<{ open: boolean }>>;
9
+ enabled?: CodegenTypes.WithDefault<boolean, false>;
10
+ open?: CodegenTypes.WithDefault<boolean, false>;
11
+ swipeEnabled?: CodegenTypes.WithDefault<boolean, false>;
12
+ hapticFeedbackEnabled?: CodegenTypes.WithDefault<boolean, false>;
13
+ bottomBarHeight?: CodegenTypes.Double;
14
+ onDrawerOpenChange?: CodegenTypes.DirectEventHandler<Readonly<{ open: boolean }>>;
15
15
  }
16
16
 
17
17
  export default codegenNativeComponent<BottomTabsDrawerNativeProps>(
@@ -1,12 +1,11 @@
1
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
2
- import type { ColorValue, ProcessedColorValue, ViewProps } from 'react-native';
3
- import type {
4
- DirectEventHandler,
5
- Double,
6
- Int32,
7
- WithDefault,
8
- } from 'react-native/Libraries/Types/CodegenTypes';
9
- //@ts-ignore
1
+ import {
2
+ codegenNativeComponent,
3
+ type CodegenTypes,
4
+ type ColorValue,
5
+ type ProcessedColorValue,
6
+ type ViewProps,
7
+ } from 'react-native';
8
+ // @ts-ignore
10
9
  import type { ImageSource } from 'react-native/Libraries/Image/ImageSource';
11
10
 
12
11
  export type OnPageSelectedEventData = Readonly<{
@@ -14,12 +13,12 @@ export type OnPageSelectedEventData = Readonly<{
14
13
  }>;
15
14
 
16
15
  export type OnTabBarMeasured = Readonly<{
17
- height: Int32;
16
+ height: CodegenTypes.Int32;
18
17
  }>;
19
18
 
20
19
  export type OnNativeLayout = Readonly<{
21
- width: Double;
22
- height: Double;
20
+ width: CodegenTypes.Double;
21
+ height: CodegenTypes.Double;
23
22
  }>;
24
23
 
25
24
  // Where the system draws the tab bar: 'bottom', or 'leading' / 'trailing' for
@@ -47,10 +46,10 @@ export type BottomTabsItems = ReadonlyArray<{
47
46
  export interface BottomTabsNativeProps extends ViewProps {
48
47
  items: BottomTabsItems;
49
48
  selectedPage: string;
50
- onPageSelected?: DirectEventHandler<OnPageSelectedEventData>;
51
- onTabDoublePress?: DirectEventHandler<OnPageSelectedEventData>;
52
- onTabBarMeasured?: DirectEventHandler<OnTabBarMeasured>;
53
- onNativeLayout?: DirectEventHandler<OnNativeLayout>;
49
+ onPageSelected?: CodegenTypes.DirectEventHandler<OnPageSelectedEventData>;
50
+ onTabDoublePress?: CodegenTypes.DirectEventHandler<OnPageSelectedEventData>;
51
+ onTabBarMeasured?: CodegenTypes.DirectEventHandler<OnTabBarMeasured>;
52
+ onNativeLayout?: CodegenTypes.DirectEventHandler<OnNativeLayout>;
54
53
  icons?: ReadonlyArray<ImageSource>;
55
54
  selectedIcons?: ReadonlyArray<ImageSource>;
56
55
  tabBarHidden?: boolean;
@@ -58,8 +57,8 @@ export interface BottomTabsNativeProps extends ViewProps {
58
57
  sidebarAdaptable?: boolean;
59
58
  scrollEdgeAppearance?: string;
60
59
  barTintColor?: ColorValue;
61
- translucent?: WithDefault<boolean, true>;
62
- androidBottomBlurEnabled?: WithDefault<boolean, false>;
60
+ translucent?: CodegenTypes.WithDefault<boolean, true>;
61
+ androidBottomBlurEnabled?: CodegenTypes.WithDefault<boolean, false>;
63
62
  rippleColor?: ColorValue;
64
63
  activeTintColor?: ColorValue;
65
64
  inactiveTintColor?: ColorValue;
@@ -69,15 +68,15 @@ export interface BottomTabsNativeProps extends ViewProps {
69
68
  minimizeBehavior?: string;
70
69
  fontFamily?: string;
71
70
  fontWeight?: string;
72
- fontSize?: Int32;
71
+ fontSize?: CodegenTypes.Int32;
73
72
  ignoreBottomInsets?: boolean;
74
- androidTabBarStyle?: WithDefault<'default' | 'floating', 'default'>;
75
- ignoreKeyboardInsets?: WithDefault<boolean, true>;
76
- onTabBarPlacementChange?: DirectEventHandler<OnTabBarPlacementChange>;
73
+ androidTabBarStyle?: CodegenTypes.WithDefault<'default' | 'floating', 'default'>;
74
+ ignoreKeyboardInsets?: CodegenTypes.WithDefault<boolean, true>;
75
+ onTabBarPlacementChange?: CodegenTypes.DirectEventHandler<OnTabBarPlacementChange>;
77
76
  // A round button drawn above a vertical tab bar; iOS only.
78
77
  sideAccessoryIcon?: ImageSource;
79
78
  sideAccessoryLabel?: string;
80
- onSideAccessoryPress?: DirectEventHandler<OnSideAccessoryPress>;
79
+ onSideAccessoryPress?: CodegenTypes.DirectEventHandler<OnSideAccessoryPress>;
81
80
  }
82
81
 
83
82
  export default codegenNativeComponent<BottomTabsNativeProps>('RNBottomTabsView');