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

Commit

Permalink
feat: export some more props
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Sep 17, 2019
1 parent 52dcace commit 2f7753e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ export { default as StackGestureContext } from './utils/StackGestureContext';
* Types
*/
export {
HeaderBackbuttonProps,
NavigationStackState,
NavigationStackProp,
NavigationStackOptions,
NavigationStackConfig,
NavigationStackScreenComponent,
NavigationStackScreenProps,
HeaderProps,
HeaderBackButtonProps,
} from './types';
4 changes: 2 additions & 2 deletions src/types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export type NavigationStackOptions = {
headerBackTitle?: string | null;
headerBackTitleStyle?: StyleProp<TextStyle>;
headerTruncatedBackTitle?: string;
headerLeft?: React.FunctionComponent<HeaderBackbuttonProps> | null;
headerLeft?: React.FunctionComponent<HeaderBackButtonProps> | null;
headerLeftContainerStyle?: StyleProp<ViewStyle>;
headerRight?: (() => React.ReactNode) | React.ReactNode;
headerRightContainerStyle?: StyleProp<ViewStyle>;
Expand Down Expand Up @@ -170,7 +170,7 @@ export type SceneDescriptorMap = {
>;
};

export type HeaderBackbuttonProps = {
export type HeaderBackButtonProps = {
disabled?: boolean;
onPress: () => void;
pressColorAndroid?: string;
Expand Down
4 changes: 2 additions & 2 deletions src/views/Header/HeaderBackButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ import TouchableItem from '../TouchableItem';

import defaultBackImage from '../assets/back-icon.png';
import BackButtonWeb from './BackButtonWeb';
import { HeaderBackbuttonProps } from '../../types';
import { HeaderBackButtonProps } from '../../types';

type State = {
initialTextWidth?: number;
};

class HeaderBackButton extends React.PureComponent<
HeaderBackbuttonProps,
HeaderBackButtonProps,
State
> {
static defaultProps = {
Expand Down
4 changes: 2 additions & 2 deletions src/views/Header/ModularHeaderBackButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import {
import TouchableItem from '../TouchableItem';

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

type Props = HeaderBackbuttonProps & {
type Props = HeaderBackButtonProps & {
LabelContainerComponent: React.ComponentType;
ButtonContainerComponent: React.ComponentType;
};
Expand Down

0 comments on commit 2f7753e

Please sign in to comment.