react-native-tab-view 3.4.1 → 3.5.1

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.
Files changed (103) hide show
  1. package/README.md +2 -2
  2. package/lib/commonjs/Pager.android.js +3 -4
  3. package/lib/commonjs/Pager.android.js.map +1 -1
  4. package/lib/commonjs/Pager.ios.js +3 -4
  5. package/lib/commonjs/Pager.ios.js.map +1 -1
  6. package/lib/commonjs/Pager.js +3 -4
  7. package/lib/commonjs/Pager.js.map +1 -1
  8. package/lib/commonjs/PagerViewAdapter.js +4 -4
  9. package/lib/commonjs/PagerViewAdapter.js.map +1 -1
  10. package/lib/commonjs/PanResponderAdapter.js +3 -4
  11. package/lib/commonjs/PanResponderAdapter.js.map +1 -1
  12. package/lib/commonjs/PlatformPressable.js +1 -1
  13. package/lib/commonjs/PlatformPressable.js.map +1 -1
  14. package/lib/commonjs/SceneMap.js +1 -1
  15. package/lib/commonjs/SceneMap.js.map +1 -1
  16. package/lib/commonjs/SceneView.js +1 -1
  17. package/lib/commonjs/SceneView.js.map +1 -1
  18. package/lib/commonjs/TabBar.js +7 -7
  19. package/lib/commonjs/TabBar.js.map +1 -1
  20. package/lib/commonjs/TabBarIndicator.js +3 -4
  21. package/lib/commonjs/TabBarIndicator.js.map +1 -1
  22. package/lib/commonjs/TabBarItem.js +3 -5
  23. package/lib/commonjs/TabBarItem.js.map +1 -1
  24. package/lib/commonjs/TabView.js +7 -8
  25. package/lib/commonjs/TabView.js.map +1 -1
  26. package/lib/commonjs/index.js +10 -11
  27. package/lib/commonjs/index.js.map +1 -1
  28. package/lib/commonjs/useAnimatedValue.js +1 -1
  29. package/lib/commonjs/useAnimatedValue.js.map +1 -1
  30. package/lib/module/Pager.android.js +1 -1
  31. package/lib/module/Pager.android.js.map +1 -1
  32. package/lib/module/Pager.ios.js +1 -1
  33. package/lib/module/Pager.ios.js.map +1 -1
  34. package/lib/module/Pager.js +1 -1
  35. package/lib/module/Pager.js.map +1 -1
  36. package/lib/module/PagerViewAdapter.js +2 -2
  37. package/lib/module/PagerViewAdapter.js.map +1 -1
  38. package/lib/module/PanResponderAdapter.js +2 -2
  39. package/lib/module/PanResponderAdapter.js.map +1 -1
  40. package/lib/module/PlatformPressable.js +1 -1
  41. package/lib/module/PlatformPressable.js.map +1 -1
  42. package/lib/module/SceneMap.js +1 -1
  43. package/lib/module/SceneMap.js.map +1 -1
  44. package/lib/module/SceneView.js +1 -1
  45. package/lib/module/SceneView.js.map +1 -1
  46. package/lib/module/TabBar.js +4 -4
  47. package/lib/module/TabBar.js.map +1 -1
  48. package/lib/module/TabBarIndicator.js +2 -2
  49. package/lib/module/TabBarIndicator.js.map +1 -1
  50. package/lib/module/TabBarItem.js +2 -3
  51. package/lib/module/TabBarItem.js.map +1 -1
  52. package/lib/module/TabView.js +4 -4
  53. package/lib/module/TabView.js.map +1 -1
  54. package/lib/module/index.js +5 -5
  55. package/lib/module/index.js.map +1 -1
  56. package/lib/module/useAnimatedValue.js +1 -1
  57. package/lib/module/useAnimatedValue.js.map +1 -1
  58. package/lib/typescript/src/Pager.android.d.ts +1 -1
  59. package/lib/typescript/src/Pager.android.d.ts.map +1 -1
  60. package/lib/typescript/src/Pager.d.ts +1 -1
  61. package/lib/typescript/src/Pager.d.ts.map +1 -1
  62. package/lib/typescript/src/Pager.ios.d.ts +1 -1
  63. package/lib/typescript/src/Pager.ios.d.ts.map +1 -1
  64. package/lib/typescript/src/PagerViewAdapter.d.ts +3 -3
  65. package/lib/typescript/src/PagerViewAdapter.d.ts.map +1 -1
  66. package/lib/typescript/src/PanResponderAdapter.d.ts +3 -3
  67. package/lib/typescript/src/PanResponderAdapter.d.ts.map +1 -1
  68. package/lib/typescript/src/PlatformPressable.d.ts +2 -2
  69. package/lib/typescript/src/PlatformPressable.d.ts.map +1 -1
  70. package/lib/typescript/src/SceneMap.d.ts +2 -2
  71. package/lib/typescript/src/SceneMap.d.ts.map +1 -1
  72. package/lib/typescript/src/SceneView.d.ts +2 -2
  73. package/lib/typescript/src/SceneView.d.ts.map +1 -1
  74. package/lib/typescript/src/TabBar.d.ts +2 -2
  75. package/lib/typescript/src/TabBar.d.ts.map +1 -1
  76. package/lib/typescript/src/TabBarIndicator.d.ts +3 -3
  77. package/lib/typescript/src/TabBarIndicator.d.ts.map +1 -1
  78. package/lib/typescript/src/TabBarItem.d.ts +3 -4
  79. package/lib/typescript/src/TabBarItem.d.ts.map +1 -1
  80. package/lib/typescript/src/TabView.d.ts +2 -2
  81. package/lib/typescript/src/TabView.d.ts.map +1 -1
  82. package/lib/typescript/src/index.d.ts +5 -5
  83. package/lib/typescript/src/index.d.ts.map +1 -1
  84. package/lib/typescript/src/types.d.ts +10 -10
  85. package/lib/typescript/src/types.d.ts.map +1 -1
  86. package/lib/typescript/src/useAnimatedValue.d.ts +1 -1
  87. package/lib/typescript/src/useAnimatedValue.d.ts.map +1 -1
  88. package/package.json +7 -7
  89. package/src/Pager.android.tsx +1 -1
  90. package/src/Pager.ios.tsx +1 -1
  91. package/src/Pager.tsx +1 -1
  92. package/src/PagerViewAdapter.tsx +3 -3
  93. package/src/PanResponderAdapter.tsx +3 -3
  94. package/src/PlatformPressable.tsx +1 -1
  95. package/src/SceneMap.tsx +1 -1
  96. package/src/SceneView.tsx +1 -1
  97. package/src/TabBar.tsx +4 -4
  98. package/src/TabBarIndicator.tsx +3 -3
  99. package/src/TabBarItem.tsx +5 -7
  100. package/src/TabView.tsx +4 -4
  101. package/src/index.tsx +5 -5
  102. package/src/types.tsx +1 -1
  103. package/src/useAnimatedValue.tsx +1 -1
@@ -1,15 +1,15 @@
1
1
  import * as React from 'react';
2
2
  import { Animated } from 'react-native';
3
3
  import type { EventEmitterProps, NavigationState, PagerProps, Route } from './types';
4
- declare type Props<T extends Route> = PagerProps & {
4
+ type Props<T extends Route> = PagerProps & {
5
5
  onIndexChange: (index: number) => void;
6
6
  navigationState: NavigationState<T>;
7
7
  children: (props: EventEmitterProps & {
8
- position: Animated.AnimatedInterpolation;
8
+ position: Animated.AnimatedInterpolation<number>;
9
9
  render: (children: React.ReactNode) => React.ReactNode;
10
10
  jumpTo: (key: string) => void;
11
11
  }) => React.ReactElement;
12
12
  };
13
- export default function PagerViewAdapter<T extends Route>({ keyboardDismissMode, swipeEnabled, navigationState, onIndexChange, onSwipeStart, onSwipeEnd, children, style, animationEnabled, ...rest }: Props<T>): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
13
+ export declare function PagerViewAdapter<T extends Route>({ keyboardDismissMode, swipeEnabled, navigationState, onIndexChange, onSwipeStart, onSwipeEnd, children, style, animationEnabled, ...rest }: Props<T>): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
14
14
  export {};
15
15
  //# sourceMappingURL=PagerViewAdapter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PagerViewAdapter.d.ts","sourceRoot":"","sources":["../../../src/PagerViewAdapter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAwB,MAAM,cAAc,CAAC;AAK9D,OAAO,KAAK,EACV,iBAAiB,EAEjB,eAAe,EACf,UAAU,EACV,KAAK,EACN,MAAM,SAAS,CAAC;AAKjB,aAAK,KAAK,CAAC,CAAC,SAAS,KAAK,IAAI,UAAU,GAAG;IACzC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,eAAe,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;IACpC,QAAQ,EAAE,CACR,KAAK,EAAE,iBAAiB,GAAG;QAGzB,QAAQ,EAAE,QAAQ,CAAC,qBAAqB,CAAC;QAGzC,MAAM,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,KAAK,KAAK,CAAC,SAAS,CAAC;QAGvD,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;KAC/B,KACE,KAAK,CAAC,YAAY,CAAC;CACzB,CAAC;AAEF,M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 @@
1
1
  import * as React from 'react';
2
2
  import { Animated } from 'react-native';
3
3
  import type { EventEmitterProps, Layout, NavigationState, PagerProps, Route } from './types';
4
- declare type Props<T extends Route> = PagerProps & {
4
+ type Props<T extends Route> = PagerProps & {
5
5
  layout: Layout;
6
6
  onIndexChange: (index: number) => void;
7
7
  navigationState: NavigationState<T>;
8
8
  children: (props: EventEmitterProps & {
9
- position: Animated.AnimatedInterpolation;
9
+ position: Animated.AnimatedInterpolation<number>;
10
10
  render: (children: React.ReactNode) => React.ReactNode;
11
11
  jumpTo: (key: string) => void;
12
12
  }) => React.ReactElement;
13
13
  };
14
- export default function PanResponderAdapter<T extends Route>({ layout, keyboardDismissMode, swipeEnabled, navigationState, onIndexChange, onSwipeStart, onSwipeEnd, children, style, animationEnabled, }: Props<T>): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
14
+ export declare function PanResponderAdapter<T extends Route>({ layout, keyboardDismissMode, swipeEnabled, navigationState, onIndexChange, onSwipeStart, onSwipeEnd, children, style, animationEnabled, }: Props<T>): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
15
15
  export {};
16
16
  //# sourceMappingURL=PanResponderAdapter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PanResponderAdapter.d.ts","sourceRoot":"","sources":["../../../src/PanResponderAdapter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,QAAQ,EAQT,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EACV,iBAAiB,EACjB,MAAM,EAEN,eAAe,EACf,UAAU,EACV,KAAK,EACN,MAAM,SAAS,CAAC;AAGjB,aAAK,KAAK,CAAC,CAAC,SAAS,KAAK,IAAI,UAAU,GAAG;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,eAAe,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;IACpC,QAA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AAG,EAAE,MAAM,KAAK,IAAI,CAAC;KAC/B,KACE,KAAK,CAAC,YAAY,CAAC;CACzB,CAAC;AAYF,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,KAAK,EAAE,EACnD,MAAM,EACN,mBAA4B,EAC5B,YAAmB,EACnB,eAAe,EACf,aAAa,EACb,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,KAAK,EACL,gBAAwB,GACzB,EAAE,KAAK,CAAC,CAAC,CAAC,sEA6QV"}
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { PressableProps } from 'react-native';
3
- export declare type Props = PressableProps & {
3
+ export type Props = PressableProps & {
4
4
  pressColor?: string;
5
5
  pressOpacity?: number;
6
6
  children: React.ReactNode;
@@ -12,5 +12,5 @@ export declare type Props = PressableProps & {
12
12
  * On Android, you can pass the props of TouchableNativeFeedback.
13
13
  * On other platforms, you can pass the props of TouchableOpacity.
14
14
  */
15
- export default function PlatformPressable({ android_ripple, pressColor, pressOpacity, style, ...rest }: Props): JSX.Element;
15
+ export declare function PlatformPressable({ android_ripple, pressColor, pressOpacity, style, ...rest }: Props): JSX.Element;
16
16
  //# sourceMappingURL=PlatformPressable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlatformPressable.d.ts","sourceRoot":"","sources":["../../../src/PlatformPressable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAuB,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnE,oBAAY,KAAK,GAAG,cAAc,GAAG;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAMF;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,cAAc,EACd,UAAiC,EACjC,YAAY,EACZ,KAAK,EACL,GAAG,IAAI,EACR,EAAE,KAAK,eAeP"}
1
+ {"version":3,"file":"PlatformPressable.d.ts","sourceRoot":"","sources":["../../../src/PlatformPressable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAuB,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnE,MAAM,MAAM,KAAK,GAAG,cAAc,GAAG;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAMF;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,cAAc,EACd,UAAiC,EACjC,YAAY,EACZ,KAAK,EACL,GAAG,IAAI,EACR,EAAE,KAAK,eAeP"}
@@ -1,9 +1,9 @@
1
1
  import * as React from 'react';
2
2
  import type { SceneRendererProps } from './types';
3
- declare type SceneProps = {
3
+ type SceneProps = {
4
4
  route: any;
5
5
  } & Omit<SceneRendererProps, 'layout'>;
6
- export default function SceneMap<T extends any>(scenes: {
6
+ export declare function SceneMap<T extends any>(scenes: {
7
7
  [key: string]: React.ComponentType<T>;
8
8
  }): ({ route, jumpTo, position }: SceneProps) => JSX.Element;
9
9
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"SceneMap.d.ts","sourceRoot":"","sources":["../../../src/SceneMap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,aAAK,UAAU,GAAG;IAChB,KAAK,EAAE,GAAG,CAAC;CACZ,GAAG,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC,CAAC;AAWvC,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,CAAC,SAAS,GAAG,EAAE,MAAM,EAAE;IACtD,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;CACvC,iCACsC,UAAU,iBAShD"}
1
+ {"version":3,"file":"SceneMap.d.ts","sourceRoot":"","sources":["../../../src/SceneMap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,KAAK,UAAU,GAAG;IAChB,KAAK,EAAE,GAAG,CAAC;CACZ,GAAG,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC,CAAC;AAWvC,wBAAgB,QAAQ,CAAC,CAAC,SAAS,GAAG,EAAE,MAAM,EAAE;IAC9C,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;CACvC,iCACsC,UAAU,iBAShD"}
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { StyleProp, ViewStyle } from 'react-native';
3
3
  import type { EventEmitterProps, NavigationState, Route, SceneRendererProps } from './types';
4
- declare type Props<T extends Route> = SceneRendererProps & EventEmitterProps & {
4
+ type Props<T extends Route> = SceneRendererProps & EventEmitterProps & {
5
5
  navigationState: NavigationState<T>;
6
6
  lazy: boolean;
7
7
  lazyPreloadDistance: number;
@@ -11,6 +11,6 @@ declare type Props<T extends Route> = SceneRendererProps & EventEmitterProps & {
11
11
  }) => React.ReactNode;
12
12
  style?: StyleProp<ViewStyle>;
13
13
  };
14
- export default function SceneView<T extends Route>({ children, navigationState, lazy, layout, index, lazyPreloadDistance, addEnterListener, style, }: Props<T>): JSX.Element;
14
+ export declare function SceneView<T extends Route>({ children, navigationState, lazy, layout, index, lazyPreloadDistance, addEnterListener, style, }: Props<T>): JSX.Element;
15
15
  export {};
16
16
  //# sourceMappingURL=SceneView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SceneView.d.ts","sourceRoot":"","sources":["../../../src/SceneView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,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C5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,KAAK,KAAK,CAAC,SAAS,CAAC;IAC3D,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAEJ,wBAAgB,SAAS,CAAC,CAAC,SAAS,KAAK,EAAE,EACzC,QAAQ,EACR,eAAe,EACf,IAAI,EACJ,MAAM,EACN,KAAK,EACL,mBAAmB,EACnB,gBAAgB,EAChB,KAAK,GACN,EAAE,KAAK,CAAC,CAAC,CAAC,eAsEV"}
@@ -3,7 +3,7 @@ import { PressableAndroidRippleConfig, StyleProp, TextStyle, ViewStyle } from 'r
3
3
  import { Props as IndicatorProps } from './TabBarIndicator';
4
4
  import { Props as TabBarItemProps } from './TabBarItem';
5
5
  import type { Event, NavigationState, Route, Scene, SceneRendererProps } from './types';
6
- export declare type Props<T extends Route> = SceneRendererProps & {
6
+ export type Props<T extends Route> = SceneRendererProps & {
7
7
  navigationState: NavigationState<T>;
8
8
  scrollEnabled?: boolean;
9
9
  bounces?: boolean;
@@ -40,5 +40,5 @@ export declare type Props<T extends Route> = SceneRendererProps & {
40
40
  testID?: string;
41
41
  android_ripple?: PressableAndroidRippleConfig;
42
42
  };
43
- export default function TabBar<T extends Route>({ getLabelText, getAccessible, getAccessibilityLabel, getTestID, renderIndicator, gap, scrollEnabled, jumpTo, navigationState, position, activeColor, bounces, contentContainerStyle, inactiveColor, indicatorContainerStyle, indicatorStyle, labelStyle, onTabLongPress, onTabPress, pressColor, pressOpacity, renderBadge, renderIcon, renderLabel, renderTabBarItem, style, tabStyle, testID, android_ripple, }: Props<T>): JSX.Element;
43
+ export declare function TabBar<T extends Route>({ getLabelText, getAccessible, getAccessibilityLabel, getTestID, renderIndicator, gap, scrollEnabled, jumpTo, navigationState, position, activeColor, bounces, contentContainerStyle, inactiveColor, indicatorContainerStyle, indicatorStyle, labelStyle, onTabLongPress, onTabPress, pressColor, pressOpacity, renderBadge, renderIcon, renderLabel, renderTabBarItem, style, tabStyle, testID, android_ripple, }: Props<T>): JSX.Element;
44
44
  //# sourceMappingURL=TabBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TabBar.d.ts","sourceRoot":"","sources":["../../../src/TabBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAOL,4BAA4B,EAC5B,SAAS,EAET,SAAS,EAET,SAAS,EAEV,MAAM,cAAc,CAAC;AAGtB,OAAwB,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAmB,EAAE,KAAK,IAAI,eAAe,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EACV,KAAK,EAEL,eAAe,EACf,KAAK,EACL,KAAK,EACL,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAGjB,oBAAY,KAAK,CAAC,CAAC,SAAS,KAAK,IAAI,kBAAkB,GAAG;IACxD,eAAe,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;IACpC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,MAAM,GAAG,SAAS,CAAC;IACvD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,OAAO,GAAG,SAAS,CAAC;IACzD,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,MAAM,GAAG,SAAS,CAAC;IAChE,SAAS,CAAC,EAAE,CAAC,KAA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AAC,CAAC,GAAG,KAAK,KAAK,IAAI,CAAC;IAC/C,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAC3C,QAAQ,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAChC,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,uBAAuB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC/C,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAClC,qBAAqB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7C,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,4BAA4B,CAAC;CAC/C,CAAC;AA4LF,wBAAgB,MAAM,CAAC,CAAC,SAAS,KAAK,EAAE,EACtC,YAAkC,EAClC,aAAoC,EACpC,qBAAoD,EACpD,SAA4B,EAC5B,eAAwC,EACxC,GAAO,EACP,aAAa,EACb,MAAM,EACN,eAAe,EACf,QAAQ,EACR,WAAW,EACX,OAAO,EACP,qBAAqB,EACrB,aAAa,EACb,uBAAuB,EACvB,cAAc,EACd,UAAU,EACV,cAAc,EACd,UAAU,EACV,UAAU,EACV,YAAY,EACZ,WAAW,EACX,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,KAAK,EACL,QAAQ,EACR,MAAM,EACN,cAAc,GACf,EAAE,KAAK,CAAC,CAAC,CAAC,eA4TV"}
@@ -1,13 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  import { StyleProp, ViewStyle } from 'react-native';
3
3
  import type { NavigationState, Route, SceneRendererProps } from './types';
4
- export declare type GetTabWidth = (index: number) => number;
5
- export declare type Props<T extends Route> = SceneRendererProps & {
4
+ export type GetTabWidth = (index: number) => number;
5
+ export type Props<T extends Route> = SceneRendererProps & {
6
6
  navigationState: NavigationState<T>;
7
7
  width: string | number;
8
8
  style?: StyleProp<ViewStyle>;
9
9
  getTabWidth: GetTabWidth;
10
10
  gap?: number;
11
11
  };
12
- export default function TabBarIndicator<T extends Route>({ getTabWidth, layout, navigationState, position, width, gap, style, }: Props<T>): JSX.Element;
12
+ export declare function TabBarIndicator<T extends Route>({ getTabWidth, layout, navigationState, position, width, gap, style, }: Props<T>): JSX.Element;
13
13
  //# sourceMappingURL=TabBarIndicator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TabBarIndicator.d.ts","sourceRoot":"","sources":["../../../src/TabBarIndicator.tsx"],"names":[],"mappings":";AACA,OAAO,EAKL,SAAS,EAET,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAG1E,oBAAY,WAAW,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;AAEpD,oBAAY,KAAK,CAAC,CAAC,SAAS,KAAK,IAAI,kBAAkB,GAAG;IACxD,eAAe,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;IACpC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,WAAW,EAAE,WAAW,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAyBF,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,CAAC,SAAS,KAAK,EAAE,EACvD,WAAW,EACX,MAAM,EACN,eAAe,EACf,QAAQ,EACR,KAAK,EACL,GAAG,EACH,KAAK,GACN,EAAE,KAAK,CAAC,CAAC,CAAC,eAqFV"}
1
+ {"version":3,"file":"TabBarIndicator.d.ts","sourceRoot":"","sources":["../../../src/TabBarIndicator.tsx"],"names":[],"mappings":";AACA,OAAO,EAKL,SAAS,EAET,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAG1E,MAAM,MAAM,WAAW,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;AAEpD,MAAM,MAAM,KAAK,CAAC,CAAC,SAAS,KAAK,IAAI,kBAAkB,GAAG;IACxD,eAAe,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;IACpC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,WAAW,EAAE,WAAW,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAyBF,wBAAgB,eAAe,CAAC,CAAC,SAAS,KAAK,EAAE,EAC/C,WAAW,EACX,MAAM,EACN,eAAe,EACf,QAAQ,EACR,KAAK,EACL,GAAG,EACH,KAAK,GACN,EAAE,KAAK,CAAC,CAAC,CAAC,eAqFV"}
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { Animated, LayoutChangeEvent, PressableAndroidRippleConfig, StyleProp, TextStyle, ViewStyle } from 'react-native';
3
3
  import type { NavigationState, Route, Scene } from './types';
4
- export declare type Props<T extends Route> = {
5
- position: Animated.AnimatedInterpolation;
4
+ export type Props<T extends Route> = {
5
+ position: Animated.AnimatedInterpolation<number>;
6
6
  route: T;
7
7
  navigationState: NavigationState<T>;
8
8
  activeColor?: string;
@@ -32,6 +32,5 @@ export declare type Props<T extends Route> = {
32
32
  style: StyleProp<ViewStyle>;
33
33
  android_ripple?: PressableAndroidRippleConfig;
34
34
  };
35
- declare function TabBarItem<T extends Route>(props: Props<T>): JSX.Element;
36
- export default TabBarItem;
35
+ export declare function TabBarItem<T extends Route>(props: Props<T>): JSX.Element;
37
36
  //# sourceMappingURL=TabBarItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TabBarItem.d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KAAK,CAAC,CAAC,CAAC,eAqB1D"}
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { StyleProp, ViewStyle } from 'react-native';
3
3
  import type { Layout, NavigationState, PagerProps, Route, SceneRendererProps } from './types';
4
- export declare type Props<T extends Route> = PagerProps & {
4
+ export type Props<T extends Route> = PagerProps & {
5
5
  onIndexChange: (index: number) => void;
6
6
  navigationState: NavigationState<T>;
7
7
  renderScene: (props: SceneRendererProps & {
@@ -23,5 +23,5 @@ export declare type Props<T extends Route> = PagerProps & {
23
23
  pagerStyle?: StyleProp<ViewStyle>;
24
24
  style?: StyleProp<ViewStyle>;
25
25
  };
26
- export default function TabView<T extends Route>({ onIndexChange, navigationState, renderScene, initialLayout, keyboardDismissMode, lazy, lazyPreloadDistance, onSwipeStart, onSwipeEnd, renderLazyPlaceholder, renderTabBar, sceneContainerStyle, pagerStyle, style, swipeEnabled, tabBarPosition, animationEnabled, overScrollMode, }: Props<T>): JSX.Element;
26
+ export declare function TabView<T extends Route>({ onIndexChange, navigationState, renderScene, initialLayout, keyboardDismissMode, lazy, lazyPreloadDistance, onSwipeStart, onSwipeEnd, renderLazyPlaceholder, renderTabBar, sceneContainerStyle, pagerStyle, style, swipeEnabled, tabBarPosition, animationEnabled, overScrollMode, }: Props<T>): JSX.Element;
27
27
  //# sourceMappingURL=TabView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TabView.d.ts","sourceRoot":"","sources":["../../../src/TabView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,SAAS,EAGT,SAAS,EACV,MAAM,cAAc,CAAC;AAKtB,OAAO,KAAK,EACV,MAAM,EACN,eAAe,EACf,UAAU,EACV,KAAK,EACL,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAEjB,oBAAY,KAAK,CAAC,CAAC,SAAS,KAAK,IAAI,UAAU,GAAG;IAChD,aAAa,EAAE,CAAC,KAAK,EAAE,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CAAC;CAC9B,CAAC;AAEF,wBAAgB,OAAO,CAAC,CAAC,SAAS,KAAK,EAAE,EACvC,aAAa,EACb,eAAe,EACf,WAAW,EACX,aAAa,EACb,mBAA4B,EAC5B,IAAY,EACZ,mBAAuB,EACvB,YAAY,EACZ,UAAU,EACV,qBAAkC,EAClC,YAA+C,EAC/C,mBAAmB,EACnB,UAAU,EACV,KAAK,EACL,YAAmB,EACnB,cAAsB,EACtB,gBAAuB,EACvB,cAAc,GACf,EAAE,KAAK,CAAC,CAAC,CAAC,eA2FV"}
@@ -1,11 +1,11 @@
1
- export { default as SceneMap } from './SceneMap';
1
+ export { SceneMap } from './SceneMap';
2
2
  export type { Props as TabBarProps } from './TabBar';
3
- export { default as TabBar } from './TabBar';
3
+ export { TabBar } from './TabBar';
4
4
  export type { Props as TabBarIndicatorProps } from './TabBarIndicator';
5
- export { default as TabBarIndicator } from './TabBarIndicator';
5
+ export { TabBarIndicator } from './TabBarIndicator';
6
6
  export type { Props as TabBarItemProps } from './TabBarItem';
7
- export { default as TabBarItem } from './TabBarItem';
7
+ export { TabBarItem } from './TabBarItem';
8
8
  export type { Props as TabViewProps } from './TabView';
9
- export { default as TabView } from './TabView';
9
+ export { TabView } from './TabView';
10
10
  export type { NavigationState, Route, SceneRendererProps } from './types';
11
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,KAAK,IAAI,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,YAAY,EAAE,KAAK,IAAI,eAAe,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,YAAY,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,YAAY,EAAE,eAAe,EAAE,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,KAAK,IAAI,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,KAAK,IAAI,eAAe,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,eAAe,EAAE,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { Animated } from 'react-native';
2
2
  import type { PagerViewProps } from 'react-native-pager-view';
3
- export declare type Route = {
3
+ export type Route = {
4
4
  key: string;
5
5
  icon?: string;
6
6
  title?: string;
@@ -8,31 +8,31 @@ export declare type Route = {
8
8
  accessibilityLabel?: string;
9
9
  testID?: string;
10
10
  };
11
- export declare type Event = {
11
+ export type Event = {
12
12
  defaultPrevented: boolean;
13
13
  preventDefault(): void;
14
14
  };
15
- export declare type Scene<T extends Route> = {
15
+ export type Scene<T extends Route> = {
16
16
  route: T;
17
17
  };
18
- export declare type NavigationState<T extends Route> = {
18
+ export type NavigationState<T extends Route> = {
19
19
  index: number;
20
20
  routes: T[];
21
21
  };
22
- export declare type Layout = {
22
+ export type Layout = {
23
23
  width: number;
24
24
  height: number;
25
25
  };
26
- export declare type Listener = (value: number) => void;
27
- export declare type SceneRendererProps = {
26
+ export type Listener = (value: number) => void;
27
+ export type SceneRendererProps = {
28
28
  layout: Layout;
29
- position: Animated.AnimatedInterpolation;
29
+ position: Animated.AnimatedInterpolation<number>;
30
30
  jumpTo: (key: string) => void;
31
31
  };
32
- export declare type EventEmitterProps = {
32
+ export type EventEmitterProps = {
33
33
  addEnterListener: (listener: Listener) => () => void;
34
34
  };
35
- export declare type PagerProps = Omit<PagerViewProps, 'initialPage' | 'scrollEnabled' | 'onPageScroll' | 'onPageSelected' | 'onPageScrollStateChanged' | 'keyboardDismissMode' | 'children'> & {
35
+ export type PagerProps = Omit<PagerViewProps, 'initialPage' | 'scrollEnabled' | 'onPageScroll' | 'onPageSelected' | 'onPageScrollStateChanged' | 'keyboardDismissMode' | 'children'> & {
36
36
  keyboardDismissMode?: 'none' | 'on-drag' | 'auto';
37
37
  swipeEnabled?: boolean;
38
38
  animationEnabled?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,oBAAY,KAAK,GAAG;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B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F,MAAM,MAAM,UAAU,GAAG,IAAI,CAC3B,cAAc,EACZ,aAAa,GACb,eAAe,GACf,cAAc,GACd,gBAAgB,GAChB,0BAA0B,GAC1B,qBAAqB,GACrB,UAAU,CACb,GAAG;IACF,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;IAClD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { Animated } from 'react-native';
2
- export default function useAnimatedValue(initialValue: number): Animated.Value;
2
+ export declare function useAnimatedValue(initialValue: number): Animated.Value;
3
3
  //# sourceMappingURL=useAnimatedValue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAnimatedValue.d.ts","sourceRoot":"","sources":["../../../src/useAnimatedValue.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,YAAY,EAAE,MAAM,kBAQ5D"}
1
+ {"version":3,"file":"useAnimatedValue.d.ts","sourceRoot":"","sources":["../../../src/useAnimatedValue.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,MAAM,kBAQpD"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-tab-view",
3
3
  "description": "Tab view component for React Native",
4
- "version": "3.4.1",
4
+ "version": "3.5.1",
5
5
  "keywords": [
6
6
  "react-native-component",
7
7
  "react-component",
@@ -42,12 +42,12 @@
42
42
  "use-latest-callback": "^0.1.5"
43
43
  },
44
44
  "devDependencies": {
45
- "del-cli": "^3.0.1",
46
- "react": "18.0.0",
47
- "react-native": "0.69.5",
45
+ "del-cli": "^5.0.0",
46
+ "react": "18.1.0",
47
+ "react-native": "0.70.5",
48
48
  "react-native-builder-bob": "^0.20.4",
49
- "react-native-pager-view": "5.4.24",
50
- "typescript": "^4.7.4"
49
+ "react-native-pager-view": "6.0.1",
50
+ "typescript": "^4.9.4"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "react": "*",
@@ -68,5 +68,5 @@
68
68
  ]
69
69
  ]
70
70
  },
71
- "gitHead": "ba6380c93f945e4c586f5e17e618208ab603bf30"
71
+ "gitHead": "230c09deeeb886929a15cb4cdcb496372a9496e1"
72
72
  }
@@ -1 +1 @@
1
- export { default } from './PagerViewAdapter';
1
+ export { PagerViewAdapter as Pager } from './PagerViewAdapter';
package/src/Pager.ios.tsx CHANGED
@@ -1 +1 @@
1
- export { default } from './PagerViewAdapter';
1
+ export { PagerViewAdapter as Pager } from './PagerViewAdapter';
package/src/Pager.tsx CHANGED
@@ -1 +1 @@
1
- export { default } from './PanResponderAdapter';
1
+ export { PanResponderAdapter as Pager } from './PanResponderAdapter';
@@ -11,7 +11,7 @@ import type {
11
11
  PagerProps,
12
12
  Route,
13
13
  } from './types';
14
- import useAnimatedValue from './useAnimatedValue';
14
+ import { useAnimatedValue } from './useAnimatedValue';
15
15
 
16
16
  const AnimatedViewPager = Animated.createAnimatedComponent(ViewPager);
17
17
 
@@ -22,7 +22,7 @@ type Props<T extends Route> = PagerProps & {
22
22
  props: EventEmitterProps & {
23
23
  // Animated value which represents the state of current index
24
24
  // It can include fractional digits as it represents the intermediate value
25
- position: Animated.AnimatedInterpolation;
25
+ position: Animated.AnimatedInterpolation<number>;
26
26
  // Function to actually render the content of the pager
27
27
  // The parent component takes care of rendering
28
28
  render: (children: React.ReactNode) => React.ReactNode;
@@ -33,7 +33,7 @@ type Props<T extends Route> = PagerProps & {
33
33
  ) => React.ReactElement;
34
34
  };
35
35
 
36
- export default function PagerViewAdapter<T extends Route>({
36
+ export function PagerViewAdapter<T extends Route>({
37
37
  keyboardDismissMode = 'auto',
38
38
  swipeEnabled = true,
39
39
  navigationState,
@@ -18,7 +18,7 @@ import type {
18
18
  PagerProps,
19
19
  Route,
20
20
  } from './types';
21
- import useAnimatedValue from './useAnimatedValue';
21
+ import { useAnimatedValue } from './useAnimatedValue';
22
22
 
23
23
  type Props<T extends Route> = PagerProps & {
24
24
  layout: Layout;
@@ -28,7 +28,7 @@ type Props<T extends Route> = PagerProps & {
28
28
  props: EventEmitterProps & {
29
29
  // Animated value which represents the state of current index
30
30
  // It can include fractional digits as it represents the intermediate value
31
- position: Animated.AnimatedInterpolation;
31
+ position: Animated.AnimatedInterpolation<number>;
32
32
  // Function to actually render the content of the pager
33
33
  // The parent component takes care of rendering
34
34
  render: (children: React.ReactNode) => React.ReactNode;
@@ -49,7 +49,7 @@ const DefaultTransitionSpec = {
49
49
  overshootClamping: true,
50
50
  };
51
51
 
52
- export default function PanResponderAdapter<T extends Route>({
52
+ export function PanResponderAdapter<T extends Route>({
53
53
  layout,
54
54
  keyboardDismissMode = 'auto',
55
55
  swipeEnabled = true,
@@ -18,7 +18,7 @@ const ANDROID_SUPPORTS_RIPPLE =
18
18
  * On Android, you can pass the props of TouchableNativeFeedback.
19
19
  * On other platforms, you can pass the props of TouchableOpacity.
20
20
  */
21
- export default function PlatformPressable({
21
+ export function PlatformPressable({
22
22
  android_ripple,
23
23
  pressColor = 'rgba(0, 0, 0, .32)',
24
24
  pressOpacity,
package/src/SceneMap.tsx CHANGED
@@ -15,7 +15,7 @@ const SceneComponent = React.memo(
15
15
  }
16
16
  );
17
17
 
18
- export default function SceneMap<T extends any>(scenes: {
18
+ export function SceneMap<T extends any>(scenes: {
19
19
  [key: string]: React.ComponentType<T>;
20
20
  }) {
21
21
  return ({ route, jumpTo, position }: SceneProps) => (
package/src/SceneView.tsx CHANGED
@@ -18,7 +18,7 @@ type Props<T extends Route> = SceneRendererProps &
18
18
  style?: StyleProp<ViewStyle>;
19
19
  };
20
20
 
21
- export default function SceneView<T extends Route>({
21
+ export function SceneView<T extends Route>({
22
22
  children,
23
23
  navigationState,
24
24
  lazy,
package/src/TabBar.tsx CHANGED
@@ -16,8 +16,8 @@ import {
16
16
  } from 'react-native';
17
17
  import useLatestCallback from 'use-latest-callback';
18
18
 
19
- import TabBarIndicator, { Props as IndicatorProps } from './TabBarIndicator';
20
- import TabBarItem, { Props as TabBarItemProps } from './TabBarItem';
19
+ import { Props as IndicatorProps, TabBarIndicator } from './TabBarIndicator';
20
+ import { Props as TabBarItemProps, TabBarItem } from './TabBarItem';
21
21
  import type {
22
22
  Event,
23
23
  Layout,
@@ -26,7 +26,7 @@ import type {
26
26
  Scene,
27
27
  SceneRendererProps,
28
28
  } from './types';
29
- import useAnimatedValue from './useAnimatedValue';
29
+ import { useAnimatedValue } from './useAnimatedValue';
30
30
 
31
31
  export type Props<T extends Route> = SceneRendererProps & {
32
32
  navigationState: NavigationState<T>;
@@ -256,7 +256,7 @@ const getTestIdDefault = ({ route }: Scene<Route>) => route.testID;
256
256
  // Defaults to 10, since that's whats FlatList is using in initialNumToRender.
257
257
  const MEASURE_PER_BATCH = 10;
258
258
 
259
- export default function TabBar<T extends Route>({
259
+ export function TabBar<T extends Route>({
260
260
  getLabelText = getLabelTextDefault,
261
261
  getAccessible = getAccessibleDefault,
262
262
  getAccessibilityLabel = getAccessibilityLabelDefault,
@@ -10,7 +10,7 @@ import {
10
10
  } from 'react-native';
11
11
 
12
12
  import type { NavigationState, Route, SceneRendererProps } from './types';
13
- import useAnimatedValue from './useAnimatedValue';
13
+ import { useAnimatedValue } from './useAnimatedValue';
14
14
 
15
15
  export type GetTabWidth = (index: number) => number;
16
16
 
@@ -23,7 +23,7 @@ export type Props<T extends Route> = SceneRendererProps & {
23
23
  };
24
24
 
25
25
  const getTranslateX = (
26
- position: Animated.AnimatedInterpolation,
26
+ position: Animated.AnimatedInterpolation<number>,
27
27
  routes: Route[],
28
28
  getTabWidth: GetTabWidth,
29
29
  gap?: number
@@ -45,7 +45,7 @@ const getTranslateX = (
45
45
  return Animated.multiply(translateX, I18nManager.isRTL ? -1 : 1);
46
46
  };
47
47
 
48
- export default function TabBarIndicator<T extends Route>({
48
+ export function TabBarIndicator<T extends Route>({
49
49
  getTabWidth,
50
50
  layout,
51
51
  navigationState,
@@ -11,11 +11,11 @@ import {
11
11
  } from 'react-native';
12
12
  import useLatestCallback from 'use-latest-callback';
13
13
 
14
- import PlatformPressable from './PlatformPressable';
14
+ import { PlatformPressable } from './PlatformPressable';
15
15
  import type { NavigationState, Route, Scene } from './types';
16
16
 
17
17
  export type Props<T extends Route> = {
18
- position: Animated.AnimatedInterpolation;
18
+ position: Animated.AnimatedInterpolation<number>;
19
19
  route: T;
20
20
  navigationState: NavigationState<T>;
21
21
  activeColor?: string;
@@ -50,7 +50,7 @@ const DEFAULT_ACTIVE_COLOR = 'rgba(255, 255, 255, 1)';
50
50
  const DEFAULT_INACTIVE_COLOR = 'rgba(255, 255, 255, 0.7)';
51
51
 
52
52
  const getActiveOpacity = (
53
- position: Animated.AnimatedInterpolation,
53
+ position: Animated.AnimatedInterpolation<number>,
54
54
  routesLength: number,
55
55
  tabIndex: number
56
56
  ) => {
@@ -67,7 +67,7 @@ const getActiveOpacity = (
67
67
  };
68
68
 
69
69
  const getInactiveOpacity = (
70
- position: Animated.AnimatedInterpolation,
70
+ position: Animated.AnimatedInterpolation<number>,
71
71
  routesLength: number,
72
72
  tabIndex: number
73
73
  ) => {
@@ -265,7 +265,7 @@ const MemoizedTabBarItemInternal = React.memo(
265
265
  TabBarItemInternal
266
266
  ) as typeof TabBarItemInternal;
267
267
 
268
- function TabBarItem<T extends Route>(props: Props<T>) {
268
+ export function TabBarItem<T extends Route>(props: Props<T>) {
269
269
  const { onPress, onLongPress, onLayout, navigationState, route, ...rest } =
270
270
  props;
271
271
  const onPressLatest = useLatestCallback(onPress);
@@ -288,8 +288,6 @@ function TabBarItem<T extends Route>(props: Props<T>) {
288
288
  );
289
289
  }
290
290
 
291
- export default TabBarItem;
292
-
293
291
  const styles = StyleSheet.create({
294
292
  label: {
295
293
  margin: 4,
package/src/TabView.tsx CHANGED
@@ -7,9 +7,9 @@ import {
7
7
  ViewStyle,
8
8
  } from 'react-native';
9
9
 
10
- import Pager from './Pager';
11
- import SceneView from './SceneView';
12
- import TabBar from './TabBar';
10
+ import { Pager } from './Pager';
11
+ import { SceneView } from './SceneView';
12
+ import { TabBar } from './TabBar';
13
13
  import type {
14
14
  Layout,
15
15
  NavigationState,
@@ -35,7 +35,7 @@ export type Props<T extends Route> = PagerProps & {
35
35
  style?: StyleProp<ViewStyle>;
36
36
  };
37
37
 
38
- export default function TabView<T extends Route>({
38
+ export function TabView<T extends Route>({
39
39
  onIndexChange,
40
40
  navigationState,
41
41
  renderScene,
package/src/index.tsx CHANGED
@@ -1,10 +1,10 @@
1
- export { default as SceneMap } from './SceneMap';
1
+ export { SceneMap } from './SceneMap';
2
2
  export type { Props as TabBarProps } from './TabBar';
3
- export { default as TabBar } from './TabBar';
3
+ export { TabBar } from './TabBar';
4
4
  export type { Props as TabBarIndicatorProps } from './TabBarIndicator';
5
- export { default as TabBarIndicator } from './TabBarIndicator';
5
+ export { TabBarIndicator } from './TabBarIndicator';
6
6
  export type { Props as TabBarItemProps } from './TabBarItem';
7
- export { default as TabBarItem } from './TabBarItem';
7
+ export { TabBarItem } from './TabBarItem';
8
8
  export type { Props as TabViewProps } from './TabView';
9
- export { default as TabView } from './TabView';
9
+ export { TabView } from './TabView';
10
10
  export type { NavigationState, Route, SceneRendererProps } from './types';