Skip to content
This repository was archived by the owner on Feb 25, 2020. It is now read-only.

Commit 2f7753e

Browse files
committed
feat: export some more props
1 parent 52dcace commit 2f7753e

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

src/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ export { default as StackGestureContext } from './utils/StackGestureContext';
4444
* Types
4545
*/
4646
export {
47-
HeaderBackbuttonProps,
4847
NavigationStackState,
4948
NavigationStackProp,
5049
NavigationStackOptions,
5150
NavigationStackConfig,
5251
NavigationStackScreenComponent,
5352
NavigationStackScreenProps,
53+
HeaderProps,
54+
HeaderBackButtonProps,
5455
} from './types';

src/types.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export type NavigationStackOptions = {
102102
headerBackTitle?: string | null;
103103
headerBackTitleStyle?: StyleProp<TextStyle>;
104104
headerTruncatedBackTitle?: string;
105-
headerLeft?: React.FunctionComponent<HeaderBackbuttonProps> | null;
105+
headerLeft?: React.FunctionComponent<HeaderBackButtonProps> | null;
106106
headerLeftContainerStyle?: StyleProp<ViewStyle>;
107107
headerRight?: (() => React.ReactNode) | React.ReactNode;
108108
headerRightContainerStyle?: StyleProp<ViewStyle>;
@@ -170,7 +170,7 @@ export type SceneDescriptorMap = {
170170
>;
171171
};
172172

173-
export type HeaderBackbuttonProps = {
173+
export type HeaderBackButtonProps = {
174174
disabled?: boolean;
175175
onPress: () => void;
176176
pressColorAndroid?: string;

src/views/Header/HeaderBackButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ import TouchableItem from '../TouchableItem';
1313

1414
import defaultBackImage from '../assets/back-icon.png';
1515
import BackButtonWeb from './BackButtonWeb';
16-
import { HeaderBackbuttonProps } from '../../types';
16+
import { HeaderBackButtonProps } from '../../types';
1717

1818
type State = {
1919
initialTextWidth?: number;
2020
};
2121

2222
class HeaderBackButton extends React.PureComponent<
23-
HeaderBackbuttonProps,
23+
HeaderBackButtonProps,
2424
State
2525
> {
2626
static defaultProps = {

src/views/Header/ModularHeaderBackButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import {
1111
import TouchableItem from '../TouchableItem';
1212

1313
import defaultBackImage from '../assets/back-icon.png';
14-
import { HeaderBackbuttonProps } from '../../types';
14+
import { HeaderBackButtonProps } from '../../types';
1515

16-
type Props = HeaderBackbuttonProps & {
16+
type Props = HeaderBackButtonProps & {
1717
LabelContainerComponent: React.ComponentType;
1818
ButtonContainerComponent: React.ComponentType;
1919
};

0 commit comments

Comments
 (0)