You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+31-27Lines changed: 31 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,38 +1,42 @@
1
+
### 7.1.2 2025-07-18
2
+
3
+
- Update documentation and package.json links
4
+
1
5
### 7.1.1 - 2024-10-26
2
6
3
-
- Fix `corners` and `sides` properties not being Partial. [#83](https://github.com/SrBrahma/react-native-shadow-2/issues/83).
4
-
- Also, [read the README](https://github.com/SrBrahma/react-native-shadow-2) about React Native 0.76 brand new built-in shadow! ;)
7
+
- Fix `corners` and `sides` properties not being Partial. [#83](https://github.com/ftzi/react-native-shadow-2/issues/83).
8
+
- Also, [read the README](https://github.com/ftzi/react-native-shadow-2) about React Native 0.76 brand new built-in shadow! ;)
5
9
6
10
### 7.1.0 - 2024-05-26
7
11
8
-
- Fixed pixel gap from top and bottom in rtl mode [#73](https://github.com/SrBrahma/react-native-shadow-2/pull/73). Thanks, [numandev1](https://github.com/numandev1)!
12
+
- Fixed pixel gap from top and bottom in rtl mode [#73](https://github.com/ftzi/react-native-shadow-2/pull/73). Thanks, [numandev1](https://github.com/numandev1)!
9
13
10
14
### 7.0.8 - 2023-05-15
11
15
12
-
- Fixed issue when the child size would change only one of its axis. [#72](https://github.com/SrBrahma/react-native-shadow-2/issues/72).
16
+
- Fixed issue when the child size would change only one of its axis. [#72](https://github.com/ftzi/react-native-shadow-2/issues/72).
13
17
- As a minor performance improvement, now sides will only be rendered if they are known to be visible. Before, if your height was X and the topStart and bottomStart radii were each X/2, the left side would still be rendered even it having the size 0.
14
18
15
19
### 7.0.7 - 2023-04-14
16
20
17
-
- Fixed X offset not working in iOS. [#65](https://github.com/SrBrahma/react-native-shadow-2/issues/65), [#67](https://github.com/SrBrahma/react-native-shadow-2/issues/67). Many thanks, [dmdmd](https://github.com/dmdmd) and [Youssef Henna](https://github.com/YoussefHenna)!
21
+
- Fixed X offset not working in iOS. [#65](https://github.com/ftzi/react-native-shadow-2/issues/65), [#67](https://github.com/ftzi/react-native-shadow-2/issues/67). Many thanks, [dmdmd](https://github.com/dmdmd) and [Youssef Henna](https://github.com/YoussefHenna)!
- Fixed inner circle of corners being black. [#56 (comment)](https://github.com/SrBrahma/react-native-shadow-2/issues/56#issuecomment-1214805252).
26
-
- Fixed the outer part of corners not being cropped. [#56 (comment)](https://github.com/SrBrahma/react-native-shadow-2/issues/56#issuecomment-1214805252). Thanks once again, [alexco2](https://github.com/alexco2)!
29
+
- Fixed inner circle of corners being black. [#56 (comment)](https://github.com/ftzi/react-native-shadow-2/issues/56#issuecomment-1214805252).
30
+
- Fixed the outer part of corners not being cropped. [#56 (comment)](https://github.com/ftzi/react-native-shadow-2/issues/56#issuecomment-1214805252). Thanks once again, [alexco2](https://github.com/alexco2)!
27
31
- setChildLayoutWidth/height will now only be called if the sizes **in pixels** changed, ignoring useless re-renders due to very small changes in the values that wouldn't change the result.
28
32
29
33
### 7.0.4 - 2022-08-14
30
34
31
-
- Fixed Android's `The argument must be a React element, but you passed null.` error. [#56](https://github.com/SrBrahma/react-native-shadow-2/issues/56). Thanks again, [alexco2](https://github.com/alexco2)!
35
+
- Fixed Android's `The argument must be a React element, but you passed null.` error. [#56](https://github.com/ftzi/react-native-shadow-2/issues/56). Thanks again, [alexco2](https://github.com/alexco2)!
32
36
33
37
### 7.0.3 - 2022-08-14
34
38
35
-
- Fixed `undefined is not an object (evaluating 'd.width')` error. [#56](https://github.com/SrBrahma/react-native-shadow-2/issues/56). Thanks, [alexco2](https://github.com/alexco2)!
39
+
- Fixed `undefined is not an object (evaluating 'd.width')` error. [#56](https://github.com/ftzi/react-native-shadow-2/issues/56). Thanks, [alexco2](https://github.com/alexco2)!
36
40
- Fixed `flex-start` not being the default `alignSelf` style as it was before.
-`disabled` property - Easy and performance-friendly way to disable the shadow (but to keep rendering the children).
54
58
-`containerViewProps` property.
55
59
-`childrenViewProps` property.
@@ -85,27 +89,27 @@ Properties removed for the sake of simplicity of this package. Probably no one u
85
89
### Fixes
86
90
87
91
-[RTL in web](https://github.com/necolas/react-native-web/issues/2350#issuecomment-1193642853).
88
-
- Error when there is more than a child. [#38](https://github.com/SrBrahma/react-native-shadow-2/issues/38)
89
-
- Error when there isn't a child. [#38 (comment)](https://github.com/SrBrahma/react-native-shadow-2/issues/38#issuecomment-1059716569)
92
+
- Error when there is more than a child. [#38](https://github.com/ftzi/react-native-shadow-2/issues/38)
93
+
- Error when there isn't a child. [#38 (comment)](https://github.com/ftzi/react-native-shadow-2/issues/38#issuecomment-1059716569)
90
94
- Situational 1-pixel overlap of corners.
91
95
92
96
<br/><hr/><br/>
93
97
94
98
## 6.0.6 - 2022-07-21
95
99
96
-
- 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)!
100
+
- Fixed Web Shadow when there are more than one being rendered. [#53](https://github.com/ftzi/react-native-shadow-2/issues/53). Many thanks, [@GreyJohnsonGit](https://github.com/GreyJohnsonGit)!
97
101
98
102
## 6.0.5 - 2022-05-01
99
103
100
-
- 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)!
104
+
- Fixed Android crash when `distance` and a radius are both 0. [#47](https://github.com/ftzi/react-native-shadow-2/issues/47). Many thanks, [@Czino](https://github.com/Czino)!
101
105
102
106
## 6.0.4 - 2022-04-12
103
107
104
-
- Fixed missed children type when using the new @types/react 18. [#44](https://github.com/SrBrahma/react-native-shadow-2/issues/44). Thanks [@Czino](https://github.com/Czino) and [@hcharley](https://github.com/hcharley)!
108
+
- Fixed missed children type when using the new @types/react 18. [#44](https://github.com/ftzi/react-native-shadow-2/issues/44). Thanks [@Czino](https://github.com/Czino) and [@hcharley](https://github.com/hcharley)!
105
109
106
110
## 6.0.3 - 2022-02-11
107
111
108
-
- Fixed paintInside gaps on iOS. [#36](https://github.com/SrBrahma/react-native-shadow-2/issues/36). Thanks, [@walterholohan](https://github.com/walterholohan)!
112
+
- Fixed paintInside gaps on iOS. [#36](https://github.com/ftzi/react-native-shadow-2/issues/36). Thanks, [@walterholohan](https://github.com/walterholohan)!
109
113
110
114
## 6.0.2 - 2022-01-26
111
115
@@ -114,41 +118,41 @@ Properties removed for the sake of simplicity of this package. Probably no one u
114
118
115
119
## 6.0.1 - 2022-01-16
116
120
117
-
- Fixed topRight corner using bottomRight radius on its positioning instead its own radius. [#33](https://github.com/SrBrahma/react-native-shadow-2/pull/33). Thanks, [@timqha](https://github.com/timqha)!
121
+
- Fixed topRight corner using bottomRight radius on its positioning instead its own radius. [#33](https://github.com/ftzi/react-native-shadow-2/pull/33). Thanks, [@timqha](https://github.com/timqha)!
118
122
119
123
## 6.0.0 - 2022-01-03
120
124
121
-
- Changed finalColor default to **transparent startColor** instead of `#000`. This results in a better gradient when startColor isn't black. [Explanation](https://github.com/SrBrahma/react-native-shadow-2/issues/31#issuecomment-985578972). As this (unlikely) may lead to unexpected visual results in your app, made this version a major.
125
+
- Changed finalColor default to **transparent startColor** instead of `#000`. This results in a better gradient when startColor isn't black. [Explanation](https://github.com/ftzi/react-native-shadow-2/issues/31#issuecomment-985578972). As this (unlikely) may lead to unexpected visual results in your app, made this version a major.
122
126
- Changed shadow wrapping View style from `width: '100%', height: '100%', position: 'absolute',` to `...StyleSheet.absoluteFillObject`. This fixed a strange overflowing shadow on the first render that happened in some specific case.
123
-
- Added `pointerEvents='none'` to the shadow wrapping view. Thanks, [OriErel](https://github.com/OriErel)! [#32](https://github.com/SrBrahma/react-native-shadow-2/pull/32)
124
-
- Added `shadowViewProps` property to set additional properties to the shadow wrapping view. [#32](https://github.com/SrBrahma/react-native-shadow-2/pull/32)
127
+
- Added `pointerEvents='none'` to the shadow wrapping view. Thanks, [OriErel](https://github.com/OriErel)! [#32](https://github.com/ftzi/react-native-shadow-2/pull/32)
128
+
- Added `shadowViewProps` property to set additional properties to the shadow wrapping view. [#32](https://github.com/ftzi/react-native-shadow-2/pull/32)
125
129
-**tsconfig** - `module` from `commonjs` to `es6`, `jsx` from `react` to `react-native`, added `esModuleInterop: true`
126
130
127
131
## 5.1.2 - 2021-11-07
128
132
129
-
- Changed tsconfig target from `esnext` to `es6`. [#29](https://github.com/SrBrahma/react-native-shadow-2/issues/29)
133
+
- Changed tsconfig target from `esnext` to `es6`. [#29](https://github.com/ftzi/react-native-shadow-2/issues/29)
130
134
131
135
## 5.1.1 - 2021-10-27
132
136
133
137
- Fixed the multi-children error being raised when > 1 child but `radius={0}`.
134
138
135
139
## 5.1.0 - 2021-10-02
136
140
137
-
- This package now supports [RTL](https://reactnative.dev/blog/2016/08/19/right-to-left-support-for-react-native-apps). [#26](https://github.com/SrBrahma/react-native-shadow-2/issues/26). Thanks [@abdullahkn287](abdullahkn287) and [@serzh-f](https://github.com/serzh-f)!
141
+
- This package now supports [RTL](https://reactnative.dev/blog/2016/08/19/right-to-left-support-for-react-native-apps). [#26](https://github.com/ftzi/react-native-shadow-2/issues/26). Thanks [@abdullahkn287](abdullahkn287) and [@serzh-f](https://github.com/serzh-f)!
138
142
-[Web] - Removed `shape-rendering: 'crispEdges'` from the SVG parts as since 5.0.0 the Web shadow is pixel perfect (by properly rounding the sizes) and this previous semi-solution is no longer needed.
139
143
140
144
## 5.0.0 - 2021-09-19
141
145
142
146
- Renamed `getChildRadiusStyle` property to `getChildRadius`.
143
-
- Each corner radius is now limited using [this](https://css-tricks.com/what-happens-when-border-radii-overlap/). The link is for CSS but works in the same way for mobile. [#15](https://github.com/SrBrahma/react-native-shadow-2/issues/15). Thanks for the limit suggestion, [@jimmi-joensson](https://github.com/jimmi-joensson)!
147
+
- Each corner radius is now limited using [this](https://css-tricks.com/what-happens-when-border-radii-overlap/). The link is for CSS but works in the same way for mobile. [#15](https://github.com/ftzi/react-native-shadow-2/issues/15). Thanks for the limit suggestion, [@jimmi-joensson](https://github.com/jimmi-joensson)!
144
148
- Added safeRender property to only render on the 2nd render and beyond -- so, no relative rendering on the first render. This is useful when you want a pill/circle like shadow and you are inputting a radius greater than the corresponding sizes. On the future there may be a prop specific for those cases to have them working right on the first render.
145
149
- In web looks like it's now completly free from the pixel gaps/overlaps on the 2nd render and beyond!
146
-
- Added pointerEvents='box-none' to the container and content views, so clicks/presses go through them and your child may receive them. [#24](https://github.com/SrBrahma/react-native-shadow-2/issues/24). Thanks, [@AdamSheaHewett](https://github.com/AdamSheaHewett)
150
+
- Added pointerEvents='box-none' to the container and content views, so clicks/presses go through them and your child may receive them. [#24](https://github.com/ftzi/react-native-shadow-2/issues/24). Thanks, [@AdamSheaHewett](https://github.com/AdamSheaHewett)
147
151
- Fixed onLayout changes not taking effect when `size` prop was true then switched to false and then a new render was made.
- Added support for `borderTopStartRadius`, `borderTopEndRadius`, `borderBottomStartRadius`, `borderTopStartRadius` in `getChildRadiusStyle` and in the new `getViewStyleRadius`. Before, only `left, right, top, bottom` combinations were supported.
153
157
- Code improvements.
154
158
- Added `types` to package.json to display `TypeScript Types` in https://reactnative.directory. - [react-native-community/directory #707](https://github.com/react-native-community/directory/pull/707#issuecomment-906719165). Thanks, [@Simek](https://github.com/Simek)!
@@ -161,7 +165,7 @@ Properties removed for the sake of simplicity of this package. Probably no one u
161
165
162
166
## 4.0.0 - 2021-08-16
163
167
164
-
Not too many changes here, but they require a major semver change. It implements [#13](https://github.com/SrBrahma/react-native-shadow-2/issues/13)
168
+
Not too many changes here, but they require a major semver change. It implements [#13](https://github.com/ftzi/react-native-shadow-2/issues/13)
165
169
166
170
-`paintInside` now defaults to true **if** the `offset` property is defined. Else, it keeps its default to false;
167
171
- Changed `viewStyle` type from `ViewStyle` to `StyleProp<ViewStyle>`. Thanks, [jimmi-joensson](https://github.com/jimmi-joensson)!
0 commit comments