Skip to content

Commit 3e11807

Browse files
committed
[workflow/test] Fixing the sonar issues
1 parent e542884 commit 3e11807

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

src/packages/react-native-material-elements/src/components/Progress/Progress.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,12 @@ export const ProgressBar = React.forwardRef<View, ProgressBarProps>(
119119

120120
const startAnimation = useCallback(() => {
121121
if (indeterminate) {
122-
if (!indeterminateAnimation.current) {
123-
indeterminateAnimation.current ??= Animated.timing(animatedWidth, {
124-
duration: INDETERMINATE_DURATION,
125-
toValue: 1,
126-
useNativeDriver: true,
127-
isInteraction: false,
128-
});
129-
}
122+
indeterminateAnimation.current ??= Animated.timing(animatedWidth, {
123+
duration: INDETERMINATE_DURATION,
124+
toValue: 1,
125+
useNativeDriver: true,
126+
isInteraction: false,
127+
});
130128

131129
animatedWidth.setValue(0);
132130

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"compilerOptions": {
44
"paths": {
55
"react": ["./node_modules/@types/react"]
6-
}
6+
},
7+
"target": "ES2021"
78
},
89
"exclude": ["node_modules", "**/*.test.ts", "**/*.test.tsx", "**/__tests__/**"]
910
}

0 commit comments

Comments
 (0)