|
| 1 | +# Changelog |
| 2 | + |
| 3 | +## [9.1.1](https://github.com/lawnstarter/react-native-picker-select/compare/v9.1.0...v9.1.1) (2024-03-29) |
| 4 | + |
| 5 | +### Build System |
| 6 | + |
| 7 | +- **package:** release 9.1.1 ([f7c7646](https://github.com/lawnstarter/react-native-picker-select/commit/f7c764608f58598422b92fee19d3a96e5124c508)) |
| 8 | + |
1 | 9 | ## 9.1.0
|
2 | 10 |
|
3 | 11 | ##### Bugfix
|
4 | 12 |
|
5 |
| -- Improve comparison in getSelectedItem (#543) |
| 13 | +- Improve comparison in getSelectedItem (#543) |
6 | 14 |
|
7 | 15 | ## 9.0.1
|
8 | 16 |
|
9 | 17 | ##### Bugfix
|
10 | 18 |
|
11 |
| -- Correct types for PickerStyle interface (#528) |
12 |
| -- Fix Icon prop type (#529) |
| 19 | +- Correct types for PickerStyle interface (#528) |
| 20 | +- Fix Icon prop type (#529) |
13 | 21 |
|
14 | 22 | ## 9.0.0
|
15 | 23 |
|
16 | 24 | ##### Breaking Changes
|
17 | 25 |
|
18 |
| -- Moved `react-native-picker` to peerDependencies and upgraded to ^2.4.0 (#523) |
| 26 | +- Moved `react-native-picker` to peerDependencies and upgraded to ^2.4.0 (#523) |
19 | 27 |
|
20 | 28 | ---
|
21 | 29 |
|
22 | 30 | ## 8.1.0
|
23 | 31 |
|
24 | 32 | ##### New
|
25 | 33 |
|
26 |
| -- Dark mode support (#513) |
27 |
| -- donePressed on onClose callback (#319) |
28 |
| -- testID available on each item (#498) |
| 34 | +- Dark mode support (#513) |
| 35 | +- donePressed on onClose callback (#319) |
| 36 | +- testID available on each item (#498) |
29 | 37 |
|
30 | 38 | ##### Bugfix
|
31 | 39 |
|
32 |
| -- Fixed reliance on now-private dep (#513) |
| 40 | +- Fixed reliance on now-private dep (#513) |
33 | 41 |
|
34 | 42 | ---
|
35 | 43 |
|
36 | 44 | ## 8.0.4
|
37 | 45 |
|
38 | 46 | ##### Bugfix
|
39 | 47 |
|
40 |
| -- Moved dep to @react-native-picker/picker |
| 48 | +- Moved dep to @react-native-picker/picker |
41 | 49 |
|
42 | 50 | ---
|
43 | 51 |
|
44 | 52 | ## 8.0.3
|
45 | 53 |
|
46 | 54 | ##### Bugfix
|
47 | 55 |
|
48 |
| -- Fix `Cannot update component inside function` error (#346) |
| 56 | +- Fix `Cannot update component inside function` error (#346) |
49 | 57 |
|
50 | 58 | ---
|
51 | 59 |
|
52 | 60 | ## 8.0.2
|
53 | 61 |
|
54 | 62 | ##### Bugfix
|
55 | 63 |
|
56 |
| -- Add `fixAndroidTouchableBug` prop (#354) |
| 64 | +- Add `fixAndroidTouchableBug` prop (#354) |
57 | 65 |
|
58 | 66 | ---
|
59 | 67 |
|
60 | 68 | ## 8.0.1
|
61 | 69 |
|
62 | 70 | ##### Bugfix
|
63 | 71 |
|
64 |
| -- Locked @react-native-community/picker to 1.6.0 to fix Expo issues |
65 |
| -- Add togglePicker method to Picker component typescript definition (#360) |
66 |
| -- Fix wrong PickerProps import in index.d.ts (#352) |
67 |
| -- Fixed inputWeb to be a TextStyle, not ViewStyle (#365) |
| 72 | +- Locked @react-native-community/picker to 1.6.0 to fix Expo issues |
| 73 | +- Add togglePicker method to Picker component typescript definition (#360) |
| 74 | +- Fix wrong PickerProps import in index.d.ts (#352) |
| 75 | +- Fixed inputWeb to be a TextStyle, not ViewStyle (#365) |
68 | 76 |
|
69 | 77 | ---
|
70 | 78 |
|
71 | 79 | ## 8.0.0
|
72 | 80 |
|
73 | 81 | ##### Breaking Changes
|
74 | 82 |
|
75 |
| -- Now using [@react-native-community/picker](https://github.com/react-native-community/react-native-picker#readme) under the hood (#340). For that reason, this library now requires React Native 0.60 or above. If using Expo, SDK38 or above is required. |
76 |
| -- Replaced item prop `displayValue` with `inputLabel` (#336) |
| 83 | +- Now using [@react-native-community/picker](https://github.com/react-native-community/react-native-picker#readme) under the hood (#340). For that reason, this library now requires React Native 0.60 or above. If using Expo, SDK38 or above is required. |
| 84 | +- Replaced item prop `displayValue` with `inputLabel` (#336) |
77 | 85 |
|
78 | 86 | ##### New
|
79 | 87 |
|
80 |
| -- Added web support (#316) |
| 88 | +- Added web support (#316) |
81 | 89 |
|
82 | 90 | ---
|
83 | 91 |
|
84 | 92 | ## 7.0.0
|
85 | 93 |
|
86 | 94 | ##### Breaking Changes
|
87 | 95 |
|
88 |
| -- Deprecated prop `hideDoneBar` has been removed |
89 |
| -- Deprecated prop `placeholderTextColor` has been removed |
90 |
| -- Type definitions rewritten (#305) |
| 96 | +- Deprecated prop `hideDoneBar` has been removed |
| 97 | +- Deprecated prop `placeholderTextColor` has been removed |
| 98 | +- Type definitions rewritten (#305) |
91 | 99 |
|
92 | 100 | ##### Chore
|
93 | 101 |
|
94 |
| -- Remove deprecated ColorPropType |
| 102 | +- Remove deprecated ColorPropType |
95 | 103 |
|
96 | 104 | ---
|
97 | 105 |
|
98 | 106 | ### 6.6.0
|
99 | 107 |
|
100 | 108 | ##### New
|
101 | 109 |
|
102 |
| -- Updated touchables to all be all TouchableOpacity (with override props available) |
103 |
| -- Done text now animates on depress like native select dialog (#215) |
| 110 | +- Updated touchables to all be all TouchableOpacity (with override props available) |
| 111 | +- Done text now animates on depress like native select dialog (#215) |
104 | 112 |
|
105 | 113 | ---
|
106 | 114 |
|
107 | 115 | ### 6.5.1
|
108 | 116 |
|
109 | 117 | ##### Bugfix
|
110 | 118 |
|
111 |
| -- Update iOS colors (#281) |
| 119 | +- Update iOS colors (#281) |
112 | 120 |
|
113 | 121 | ---
|
114 | 122 |
|
115 | 123 | ### 6.5.0
|
116 | 124 |
|
117 | 125 | ##### New
|
118 | 126 |
|
119 |
| -- If an item has the `displayValue` property set to true, the TextInput shows the item `value` instead of the item `label` (#279) |
| 127 | +- If an item has the `displayValue` property set to true, the TextInput shows the item `value` instead of the item `label` (#279) |
120 | 128 |
|
121 | 129 | ---
|
122 | 130 |
|
123 | 131 | ### 6.4.0
|
124 | 132 |
|
125 | 133 | ##### New
|
126 | 134 |
|
127 |
| -- Opened up `onOpen` prop to now support Android when in headless or `useNativeAndroidPickerStyle={false}` mode |
| 135 | +- Opened up `onOpen` prop to now support Android when in headless or `useNativeAndroidPickerStyle={false}` mode |
128 | 136 |
|
129 | 137 | ---
|
130 | 138 |
|
131 | 139 | ### 6.3.4
|
132 | 140 |
|
133 | 141 | ##### Bugfix
|
134 | 142 |
|
135 |
| -- Fix for `onDonePress` regression (#236) |
136 |
| -- "Done" Text element now set to `allowFontScaling={false}` (#247) |
| 143 | +- Fix for `onDonePress` regression (#236) |
| 144 | +- "Done" Text element now set to `allowFontScaling={false}` (#247) |
137 | 145 |
|
138 | 146 | ---
|
139 | 147 |
|
140 | 148 | ### 6.3.3
|
141 | 149 |
|
142 | 150 | ##### Chore
|
143 | 151 |
|
144 |
| -- Split off styles into separate file |
| 152 | +- Split off styles into separate file |
145 | 153 |
|
146 | 154 | ---
|
147 | 155 |
|
148 | 156 | ### 6.3.2
|
149 | 157 |
|
150 | 158 | ##### Bugfix
|
151 | 159 |
|
152 |
| -- Update typescript definition file to add `InputAccessoryView` |
| 160 | +- Update typescript definition file to add `InputAccessoryView` |
153 | 161 |
|
154 | 162 | ---
|
155 | 163 |
|
156 | 164 | ### 6.3.1
|
157 | 165 |
|
158 | 166 | ##### Bugfix
|
159 | 167 |
|
160 |
| -- Fix Done button on iPad (#209) |
| 168 | +- Fix Done button on iPad (#209) |
161 | 169 |
|
162 | 170 | ---
|
163 | 171 |
|
164 | 172 | ### 6.3.0
|
165 | 173 |
|
166 | 174 | ##### New
|
167 | 175 |
|
168 |
| -- Added a prop called `InputAccessoryView` to allow a custom component to replace the InputAccessoryView on iOS. View the [snack](https://snack.expo.io/@lfkwtz/react-native-picker-select) to see examples on how this can be customized. As a result of this change, the `hideDoneBar` prop has been deprecated. |
169 |
| -- iOS modal window now correctly resizes on orientation change |
170 |
| -- `defaultStyles` are now exported |
| 176 | +- Added a prop called `InputAccessoryView` to allow a custom component to replace the InputAccessoryView on iOS. View the [snack](https://snack.expo.io/@lfkwtz/react-native-picker-select) to see examples on how this can be customized. As a result of this change, the `hideDoneBar` prop has been deprecated. |
| 177 | +- iOS modal window now correctly resizes on orientation change |
| 178 | +- `defaultStyles` are now exported |
171 | 179 |
|
172 | 180 | ---
|
173 | 181 |
|
174 | 182 | ### 6.2.0
|
175 | 183 |
|
176 | 184 | ##### New
|
177 | 185 |
|
178 |
| -- Supports an empty `items` array (#161) |
| 186 | +- Supports an empty `items` array (#161) |
179 | 187 |
|
180 | 188 | ---
|
181 | 189 |
|
182 | 190 | ### 6.1.1
|
183 | 191 |
|
184 | 192 | ##### Bugfix
|
185 | 193 |
|
186 |
| -- Replaced setTimeouts with callbacks for arrow buttons (#177) |
| 194 | +- Replaced setTimeouts with callbacks for arrow buttons (#177) |
187 | 195 |
|
188 | 196 | ---
|
189 | 197 |
|
190 | 198 | ### 6.1.0
|
191 | 199 |
|
192 | 200 | ##### New
|
193 | 201 |
|
194 |
| -- Opened up `placeholder` on style object for modification (#119) (#155). The `placeholderTextColor` prop is now deprecated, as this style object allows for additional properties. |
| 202 | +- Opened up `placeholder` on style object for modification (#119) (#155). The `placeholderTextColor` prop is now deprecated, as this style object allows for additional properties. |
195 | 203 |
|
196 | 204 | ---
|
197 | 205 |
|
198 | 206 | ## 6.0.0
|
199 | 207 |
|
200 | 208 | #### Breaking Changes
|
201 | 209 |
|
202 |
| -- In order to make this component less opinionated, especially in terms of style, we have removed the default dropdown arrow icon in leiu of a more flexible `Icon` prop which will render a component - allowing you to insert your own css, image, svg, or icon from any library of your choosing. Due to this change, the `noIcon` prop has been removed. To replicate the arrow from previous versions, see the [last example](example/example.js) / see the styling section in the README for more details. |
203 |
| -- In Android, we no longer insert a psuedo-underline by default - as the default input style in React Native sets the underline color to transparent since [this PR](https://github.com/facebook/react-native/commit/a3a98eb1c7fa0054a236d45421393874ce8ce558) - which landed in 0.56. You can add this back in fairly easily, either by using the `textInputProps` prop or by adding a border on one of the wrapping container elements - all depending on your personal usage of the component. |
204 |
| -- Some of the default styles of the iOS "Done bar" have been tweaked and streamlined |
205 |
| -- if using useNativeAndroidPickerStyle={false}, the outer container is now only `headlessAndroidContainer` without `viewContainer` wrapping it |
| 210 | +- In order to make this component less opinionated, especially in terms of style, we have removed the default dropdown arrow icon in leiu of a more flexible `Icon` prop which will render a component - allowing you to insert your own css, image, svg, or icon from any library of your choosing. Due to this change, the `noIcon` prop has been removed. To replicate the arrow from previous versions, see the [last example](example/example.js) / see the styling section in the README for more details. |
| 211 | +- In Android, we no longer insert a psuedo-underline by default - as the default input style in React Native sets the underline color to transparent since [this PR](https://github.com/facebook/react-native/commit/a3a98eb1c7fa0054a236d45421393874ce8ce558) - which landed in 0.56. You can add this back in fairly easily, either by using the `textInputProps` prop or by adding a border on one of the wrapping container elements - all depending on your personal usage of the component. |
| 212 | +- Some of the default styles of the iOS "Done bar" have been tweaked and streamlined |
| 213 | +- if using useNativeAndroidPickerStyle={false}, the outer container is now only `headlessAndroidContainer` without `viewContainer` wrapping it |
206 | 214 |
|
207 | 215 | ---
|
208 | 216 |
|
209 | 217 | ### 5.2.5
|
210 | 218 |
|
211 | 219 | ##### Bugfix
|
212 | 220 |
|
213 |
| -- Fix headless Android onValueChange trigger on render (#141) |
| 221 | +- Fix headless Android onValueChange trigger on render (#141) |
214 | 222 |
|
215 | 223 | ---
|
216 | 224 |
|
217 | 225 | ### 5.2.4
|
218 | 226 |
|
219 | 227 | #### Bugfix
|
220 | 228 |
|
221 |
| -- Fix TypeError (#139) |
| 229 | +- Fix TypeError (#139) |
222 | 230 |
|
223 | 231 | ---
|
224 | 232 |
|
225 | 233 | ### 5.2.3
|
226 | 234 |
|
227 | 235 | ##### Bugfix
|
228 | 236 |
|
229 |
| -- Fixes Android headless mode trigger area (#122) |
| 237 | +- Fixes Android headless mode trigger area (#122) |
230 | 238 |
|
231 | 239 | ---
|
232 | 240 |
|
233 | 241 | ### 5.2.2
|
234 | 242 |
|
235 | 243 | ##### Bugfix
|
236 | 244 |
|
237 |
| -- Fixes unnecessary renders (#129) |
| 245 | +- Fixes unnecessary renders (#129) |
238 | 246 |
|
239 | 247 | ---
|
240 | 248 |
|
241 | 249 | ### 5.2.1
|
242 | 250 |
|
243 | 251 | ##### Bugfix
|
244 | 252 |
|
245 |
| -- Fixes keyboard not dismissing on iOS |
| 253 | +- Fixes keyboard not dismissing on iOS |
246 | 254 |
|
247 | 255 | ---
|
248 | 256 |
|
249 | 257 | ### 5.2.0
|
250 | 258 |
|
251 | 259 | ##### New
|
252 | 260 |
|
253 |
| -- Added `onOpen` and `onClose` callbacks (iOS only) |
| 261 | +- Added `onOpen` and `onClose` callbacks (iOS only) |
254 | 262 |
|
255 | 263 | ---
|
256 | 264 |
|
257 | 265 | ### 5.1.1
|
258 | 266 |
|
259 | 267 | ##### New
|
260 | 268 |
|
261 |
| -- Opened up headlessAndroidPicker and chevronContainer on style object for modification |
| 269 | +- Opened up headlessAndroidPicker and chevronContainer on style object for modification |
262 | 270 |
|
263 | 271 | ---
|
264 | 272 |
|
265 | 273 | ### 5.1.0
|
266 | 274 |
|
267 | 275 | ##### New
|
268 | 276 |
|
269 |
| -- Added `useNativeAndroidPickerStyle` prop. See README for more details. |
| 277 | +- Added `useNativeAndroidPickerStyle` prop. See README for more details. |
270 | 278 |
|
271 | 279 | ##### Bugfix
|
272 | 280 |
|
273 |
| -- Fixed Android headless mode showing selected value outside of View (#83) |
| 281 | +- Fixed Android headless mode showing selected value outside of View (#83) |
274 | 282 |
|
275 | 283 | ---
|
276 | 284 |
|
277 | 285 | ### 5.0.1
|
278 | 286 |
|
279 | 287 | ##### Bugfix
|
280 | 288 |
|
281 |
| -- Fixed `TouchableWithoutFeedback` warning |
| 289 | +- Fixed `TouchableWithoutFeedback` warning |
282 | 290 |
|
283 | 291 | ---
|
284 | 292 |
|
285 | 293 | ## 5.0.0
|
286 | 294 |
|
287 | 295 | #### Breaking Changes
|
288 | 296 |
|
289 |
| -- `styles.placeholderColor` has been replaced with `placeholderTextColor` |
290 |
| -- `mode` prop is now accessible via `pickerProps` |
291 |
| -- `animationType` prop is now accessible via `modalProps` (see warning in README) |
| 297 | +- `styles.placeholderColor` has been replaced with `placeholderTextColor` |
| 298 | +- `mode` prop is now accessible via `pickerProps` |
| 299 | +- `animationType` prop is now accessible via `modalProps` (see warning in README) |
292 | 300 |
|
293 | 301 | ##### New
|
294 | 302 |
|
295 |
| -- Default placeholder now includes default `color` of #9EA0A4 |
296 |
| -- `pickerProps`, `modalProps`, and `textInputProps` have been added (see README) |
| 303 | +- Default placeholder now includes default `color` of #9EA0A4 |
| 304 | +- `pickerProps`, `modalProps`, and `textInputProps` have been added (see README) |
0 commit comments