This repository was archived by the owner on Feb 25, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,11 +44,12 @@ export { default as StackGestureContext } from './utils/StackGestureContext';
4444 * Types
4545 */
4646export {
47- HeaderBackbuttonProps ,
4847 NavigationStackState ,
4948 NavigationStackProp ,
5049 NavigationStackOptions ,
5150 NavigationStackConfig ,
5251 NavigationStackScreenComponent ,
5352 NavigationStackScreenProps ,
53+ HeaderProps ,
54+ HeaderBackButtonProps ,
5455} from './types' ;
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change @@ -13,14 +13,14 @@ import TouchableItem from '../TouchableItem';
1313
1414import defaultBackImage from '../assets/back-icon.png' ;
1515import BackButtonWeb from './BackButtonWeb' ;
16- import { HeaderBackbuttonProps } from '../../types' ;
16+ import { HeaderBackButtonProps } from '../../types' ;
1717
1818type State = {
1919 initialTextWidth ?: number ;
2020} ;
2121
2222class HeaderBackButton extends React . PureComponent <
23- HeaderBackbuttonProps ,
23+ HeaderBackButtonProps ,
2424 State
2525> {
2626 static defaultProps = {
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ import {
1111import TouchableItem from '../TouchableItem' ;
1212
1313import 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} ;
You can’t perform that action at this time.
0 commit comments