Skip to content

Commit 4454cb5

Browse files
committed
export Button enums
1 parent 299b134 commit 4454cb5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/button/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export enum ButtonSize {
2626
large = 'large'
2727
}
2828

29-
export enum AnimationDirection {
29+
export enum ButtonAnimationDirection {
3030
center = 'center',
3131
left = 'left',
3232
right = 'right'
@@ -146,7 +146,7 @@ export type ButtonProps = TouchableOpacityProps &
146146
/**
147147
* the direction of the animation ('left' and 'right' will effect the button's own alignment)
148148
*/
149-
animateTo?: AnimationDirection;
149+
animateTo?: ButtonAnimationDirection;
150150
};
151151
export type ButtonPropTypes = ButtonProps; //TODO: remove after ComponentPropTypes deprecation;
152152

@@ -196,7 +196,7 @@ class Button extends PureComponent<Props, ButtonState> {
196196

197197
static sizes = ButtonSize;
198198

199-
static animationDirection = AnimationDirection;
199+
static animationDirection = ButtonAnimationDirection;
200200

201201
// This redundant constructor for some reason fix tests :/
202202
// eslint-disable-next-line

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export {default as Constants} from './helpers/Constants';
2727
export {default as View, ViewPropTypes, ViewProps} from './components/view';
2828
export {default as Text, TextPropTypes, TextProps} from './components/text';
2929
export {default as TouchableOpacity, TouchableOpacityProps} from './components/touchableOpacity';
30-
export {default as Button, ButtonPropTypes, ButtonProps} from './components/button';
30+
export {default as Button, ButtonPropTypes, ButtonProps, ButtonSize, ButtonAnimationDirection} from './components/button';
3131
export {default as Checkbox, CheckboxPropTypes, CheckboxProps} from './components/checkbox';
3232
export {default as Chip, ChipPropTypes, ChipProps} from './components/chip';
3333
export {default as FloatingButton, FloatingButtonProps} from './components/floatingButton';

0 commit comments

Comments
 (0)