Skip to content

Commit 20a70c7

Browse files
committed
[unit-testing] Fixed sonar issue
1 parent f5ee5af commit 20a70c7

File tree

1 file changed

+1
-1
lines changed
  • src/packages/react-native-material-elements/src/components/Ripple

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const Ripple = React.forwardRef<RippleInterface, RippleProps>(
5757
positionX: positionX - RIPPLE_SIZE / 2,
5858
positionY: positionY - RIPPLE_SIZE / 2,
5959
radius: RIPPLE_RADIUS,
60-
id: new Date().getTime(),
60+
id: Date.now(),
6161
};
6262

6363
let animation = Animated.timing(ripple.progress, {

0 commit comments

Comments
 (0)