Skip to content

Commit

Permalink
fix: pr comment changes
Browse files Browse the repository at this point in the history
  • Loading branch information
allroundexperts committed Aug 29, 2023
1 parent fe59f6d commit 85e7035
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
6 changes: 2 additions & 4 deletions src/components/TabSelector/TabIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ const propTypes = {
icon: PropTypes.func,

/** Animated opacity value while the label is inactive state */
// eslint-disable-next-line
inactiveOpacity: PropTypes.any,
inactiveOpacity: PropTypes.number,

/** Animated opacity value while the label is in active state */
// eslint-disable-next-line
activeOpacity: PropTypes.any,
activeOpacity: PropTypes.number,
};

const defaultProps = {
Expand Down
6 changes: 2 additions & 4 deletions src/components/TabSelector/TabLabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ const propTypes = {
title: PropTypes.string,

/** Animated opacity value while the label is inactive state */
// eslint-disable-next-line
inactiveOpacity: PropTypes.any,
inactiveOpacity: PropTypes.number,

/** Animated opacity value while the label is in active state */
// eslint-disable-next-line
activeOpacity: PropTypes.any,
activeOpacity: PropTypes.number,
};

const defaultProps = {
Expand Down
1 change: 1 addition & 0 deletions src/components/TabSelector/TabSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const propTypes = {
/* Callback fired when tab is pressed */
onTabPress: PropTypes.func,

/* AnimatedValue for the position of the screen while swiping */
position: PropTypes.shape({
interpolate: PropTypes.func.isRequired,
}),
Expand Down
8 changes: 4 additions & 4 deletions src/components/TabSelector/TabSelectorItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ const propTypes = {
backgroundColor: PropTypes.any,

/** Animated opacity value while the label is inactive state */
// eslint-disable-next-line
inactiveOpacity: PropTypes.any,
inactiveOpacity: PropTypes.number,

/** Animated opacity value while the label is in active state */
// eslint-disable-next-line
activeOpacity: PropTypes.any,
activeOpacity: PropTypes.number,
};

const defaultProps = {
onPress: () => {},
icon: () => {},
title: '',
backgroundColor: '',
inactiveOpacity: 1,
activeOpacity: 0,
};

const AnimatedPressableWithFeedback = Animated.createAnimatedComponent(PressableWithFeedback);
Expand Down

0 comments on commit 85e7035

Please sign in to comment.