Skip to content

v5.0.0-alpha.1

Pre-release
Pre-release

Choose a tag to compare

@jsamr jsamr released this 26 Sep 09:46

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;
  • img's tag resizeMode property not modifiable through tagStyles, #172;
  • imagesMaxWidth not working, #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.