Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/CurvedBottomBar/components/BottomBarView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import React, {
import { Dimensions, Text, TouchableOpacity, View } from 'react-native';
import { scale } from 'react-native-size-scaling';
import { useDeviceOrientation } from '../../../useDeviceOrientation';
import { getPathDown } from '../../utils/pathDown';
import { getPathUp } from '../../utils/pathUp';
import { getPathDown as getPathDownDefault } from '../../utils/pathDown';
import { getPathUp as getPathUpDefault } from '../../utils/pathUp';
import { CurvedViewComponent } from '../CurvedView/curvedView';
import type { NavigatorBottomBarProps } from './model';
import { styles } from './styles';
Expand All @@ -38,6 +38,8 @@ const BottomBarComponent: (
renderCircle,
borderTopLeftRight = false,
shadowStyle,
getPathDown = getPathDownDefault,
getPathUp = getPathUpDefault,
} = props;

const [itemLeft, setItemLeft] = useState<any[]>([]);
Expand Down
4 changes: 4 additions & 0 deletions src/CurvedBottomBar/components/BottomBarView/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import {
} from '@react-navigation/native';
import React from 'react';
import { StyleProp, ViewStyle } from 'react-native';
import { getPathDown } from '../../utils/pathDown';
import { getPathUp } from '../../utils/pathUp';

type Enumerate<
N extends number,
Expand Down Expand Up @@ -62,6 +64,8 @@ interface Props {
selectedTab: string;
navigate: (selectedTab: string) => void;
}) => JSX.Element;
getPathUp?: typeof getPathUp;
getPathDown?: typeof getPathDown;
}

export type NavigatorBottomBarProps = DefaultNavigatorOptions<
Expand Down
6 changes: 4 additions & 2 deletions src/CurvedBottomBar/components/BottomBarViewExpo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import React, {
import { Dimensions, Text, TouchableOpacity, View } from 'react-native';
import { scale } from 'react-native-size-scaling';
import { useDeviceOrientation } from '../../../useDeviceOrientation';
import { getPathDown } from '../../utils/pathDown';
import { getPathUp } from '../../utils/pathUp';
import { getPathDown as getPathDownDefault } from '../../utils/pathDown';
import { getPathUp as getPathUpDefault } from '../../utils/pathUp';
import { CurvedViewExpoComponent } from '../CurvedView/curvedViewExpo';
import type { NavigatorBottomBarProps } from './model';
import { styles } from './styles';
Expand All @@ -38,6 +38,8 @@ const BottomBarComponent: (
renderCircle,
borderTopLeftRight = false,
shadowStyle,
getPathDown = getPathDownDefault,
getPathUp = getPathUpDefault,
} = props;

const [itemLeft, setItemLeft] = useState<any[]>([]);
Expand Down
4 changes: 4 additions & 0 deletions src/CurvedBottomBar/components/BottomBarViewExpo/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import {
} from '@react-navigation/native';
import React from 'react';
import { StyleProp, ViewStyle } from 'react-native';
import { getPathDown } from '../../utils/pathDown';
import { getPathUp } from '../../utils/pathUp';

type Enumerate<
N extends number,
Expand Down Expand Up @@ -62,6 +64,8 @@ interface Props {
selectedTab: string;
navigate: (selectedTab: string) => void;
}) => JSX.Element;
getPathUp?: typeof getPathUp;
getPathDown?: typeof getPathDown;
}

export type NavigatorBottomBarProps = DefaultNavigatorOptions<
Expand Down