Usage Map

Example of advanced ES2020 map usage in ScriptWidget.

Example

// ScriptWidget 
// https://xnu.app/scriptwidget
// 
// Mapping over an array
// Thanks for Reina for telling me this good idea
// 

const values = ["one", "two", "three", "four"];

const test = values.map((value) => { 
  return(<text>{value}</text>)
})

$render(
  <vstack>
    <text font="title">test</text>
    {test}
  </vstack>
);
HealthKit and Location data are only available after user authorization in the main app. Widgets may show cached or fallback data.