Skip to content

v2.7.0

Choose a tag to compare

@github-actions github-actions released this 20 Nov 18:27
· 9 commits to main since this release

iOS Dynamic Widgets now show why a render failed, backgroundImage gradients work on iOS as they do on Android, and three iOS bugs are fixed.

Upgrading

  • iOS: a Dynamic Live Activity bundle that throws while it is evaluated is now reported as a failed evaluation. Before, it silently kept using the previously evaluated render. (#373)

New

Render failures in iOS Dynamic Widgets (#373)

This is the same policy Android got in 2.6.0.

  • Debug builds show an error view on the Home Screen with the widget id, the failing stage, the error message and the stack, including voltra/<id>.bundle:line:column locations. On iOS 17 and later, tapping it reloads the bundle from Metro and retries.
  • Release builds keep the last render that succeeded for each widget, configuration, size and appearance, instead of falling back to the placeholder after a bad props update or locale change.
  • Each failed render is logged under the widget category.

backgroundImage gradients on iOS (#192)

iOS now supports style.backgroundImage with linear-gradient, radial-gradient and conic-gradient, painted over backgroundColor, so the same style renders the same gradient on iOS and Android. Gradient strings in backgroundColor keep working.

Fixes

  • iOS: gradients whose color stops have no explicit positions, such as linear-gradient(to right, red, blue), now render. Before, they rendered nothing unless the first and last stops had positions, a bug present since 1.3.0. (#377)
  • iOS: the in-app VoltraView no longer aborts Debug builds on its first render on React Native 0.88 (Expo SDK 58). It used to read its first props from the wrong object, which was also undefined behaviour in Release builds. (#378)
  • Android: server-driven Dynamic Widgets fetch once when placed, instead of twice. (#363)

Thanks

Thanks to @V3RON for the original backgroundImage work in #192, and to @tlq5l for #363.

Full Changelog: v2.6.1...v2.7.0