Skip to content

Commit 93d9652

Browse files
committed
6.0.6
1 parent ed4e716 commit 93d9652

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 6.0.6 - 2022-07-21
2+
* Fixed Web Shadow when there are more than one being rendered. [#53](https://github.com/SrBrahma/react-native-shadow-2/issues/53). Many thanks, [@GreyJohnsonGit](https://github.com/GreyJohnsonGit)!
3+
14
## 6.0.5 - 2022-05-01
25
* Fixed Android crash when `distance` and a radius are both 0. [#47](https://github.com/SrBrahma/react-native-shadow-2/issues/47). Many thanks, [@Czino](https://github.com/Czino)!
36

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-shadow-2",
3-
"version": "6.0.5",
3+
"version": "6.0.6",
44
"description": "Cross-platform shadow for React Native. Improved version of the abandoned react-native-shadow package",
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",

sandbox/src/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { cornerToStyle, objFromKeys } from './utils';
1010

1111
/** Package Semver. Used on the [Snack](https://snack.expo.dev/@srbrahma/react-native-shadow-2-sandbox)
1212
* and somehow may be useful to you. */
13-
export const version = '6.0.5';
13+
export const version = '6.0.6';
1414

1515
const isWeb = Platform.OS === 'web';
1616

src/index.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { cornerToStyle, objFromKeys } from './utils';
1010

1111
/** Package Semver. Used on the [Snack](https://snack.expo.dev/@srbrahma/react-native-shadow-2-sandbox)
1212
* and somehow may be useful to you. */
13-
export const version = '6.0.5';
13+
export const version = '6.0.6';
1414

1515
const isWeb = Platform.OS === 'web';
1616

@@ -54,7 +54,7 @@ const sidesArray = ['left', 'right', 'top', 'bottom'] as const;
5454
/** Generates a sufficiently unique suffix to add to gradient ids and prevent collisions. */
5555
const generateGradientIdSuffix = (() => {
5656
let shadowGradientIdCounter = 0;
57-
return () => String(shadowGradientIdCounter++)
57+
return () => String(shadowGradientIdCounter++);
5858
})();
5959

6060

@@ -456,10 +456,7 @@ export const Shadow: React.FC<ShadowProps> = ({
456456
}
457457

458458
</>);
459-
}, [
460-
safeRender, width, height, startColorProp, finalColorProp, radii, distance, distanceWithAdditional, heightWithAdditional,
461-
widthWithAdditional, paintInside, sidesProp, cornersProp, isRTL,
462-
]);
459+
}, [distance, paintInside, safeRender, width, height, startColorProp, finalColorProp, radii, distanceWithAdditional, heightWithAdditional, isRTL, gradientIdSuffix, widthWithAdditional, sidesProp, cornersProp]);
463460

464461
const result = useMemo(() => {
465462
return (

0 commit comments

Comments
 (0)