Skip to content

v2.7.1

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Nov 17:32

Six bug fixes on iOS and Android, and new docs on adapting an Android widget to its size.

Fixes

  • iOS: after a normal launch, the React tree no longer unmounts and remounts on the first foreground, or on the first isHeadless() / useIsHeadless() call. Before, that reset anything in flight, such as a pull-to-refresh or a half-filled form. (#382, fixes #340)
  • iOS: server-driven Dynamic Widgets now show their first fetch after the widget process starts, instead of discarding it and waiting for the next interval. iOS stops widget processes often, so this was the common case. (#389, fixes #387)
  • iOS and Android: settings passed to setWidgetServerUpdate(..., { widgetId }) now apply to server-driven Dynamic Widgets that have configuration parameters. Before, those widgets ignored the widget's URL, interval, method, headers and body, and used the global or app.json values. (#399, fixes #381)
  • Android: an ArcProgressIndicator with gradientColors now draws each round cap in the color of its own end. Before, the cap where a clockwise arc starts, or where a counter-clockwise arc ends, took the color of the other end. (#383, fixes #311)
  • Android: children hidden with display: 'none' or the visibility('gone') modifier no longer leave an empty space in Column, Row, LazyColumn and LazyVerticalGrid on Android 11 and older. (#386, fixes #368)
  • Android: the color prop on Text now takes effect and overrides color from style. Before, it was ignored. (#385)

Docs

  • Android: the Dynamic Widgets page now explains env.widgetFamily, the widget's size in dp, and how to adapt a layout to it, such as the number of grid columns. (#384)

Thanks

Thanks to @mrevanzak for #389, @konstmar for #385, and @tlq5l for #386 and for reporting #381.

Full Changelog: v2.7.0...v2.7.1