diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 6d9a35b8d..8c928c433 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -6,6 +6,30 @@ > We have since deliberately [committed to Semantic > Versioning](MAINTAINING.adoc#semantic-versioning). +# next + +## Enhancements + +- Brand new `HTMLImage` component which should be much better at adapting its + size to available width. For this to happen, **you must** pass `contentWidth` + prop. We recommend using `useWindowDimensions().width` to handle screen + rotation gracefully. If you don't want your images to grow after a certain + size, you could use `computeImagesMaxWidth`. +- New prop `computeImagesMaxWidth` (see usage above). +- New prop `contentWidth` (see usage above). + +## Bugfixes + +- Image getting blur on iOS, [#141](https://github.com/archriss/react-native-render-html/issues/141); +- `img`'s tag `resizeMode` property not modifiable through `tagStyles`, [#172](https://github.com/archriss/react-native-render-html/issues/172); +- `imagesMaxWidth` not working, [#412](https://github.com/archriss/react-native-render-html/issues/412) + +## BREAKING CHANGES + +- `imagesMaxWidth` had been discontinued in favor of `computeImagesMaxWidth`. + This function takes the provided `contentWidth` as an argument, and returns + the space the image should take. + # v4.2.4 ## Bugfixes @@ -55,7 +79,7 @@ ## Improvements -* Add typescript definitions #341 (thanks @jsamr and to everyone that helped him !) +- Add typescript definitions #341 (thanks @jsamr and to everyone that helped him !) # v4.2.0 @@ -76,44 +100,44 @@ ## Bugfixes -* Prevent crash when encountering css functions like `style="calc(100% - 20px);"` -* Prevent crash when encountering `normal` and `unset` keys +- Prevent crash when encountering css functions like `style="calc(100% - 20px);"` +- Prevent crash when encountering `normal` and `unset` keys # v4.1.0 ## Features -* Add a default renderer for `
`. This lets you display preformatted text such as code inside your content with a monospace font. #196
-* Add `allowFontScaling` prop. #157 (thanks @amhinson !)
-* Support `srcdoc` in `