mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-11 21:50:13 +00:00
Two additive changes to shared components, both needed by the playbooks task
activity chip and neither specific to it.
getFriendlyDate gains a `style` parameter. The default stays 'long' so every
existing caller renders exactly as before; 'narrow' switches to always-numeric,
abbreviated output ("4h ago", "38m ago", "3d ago") for callers that have to fit
a relative time into a chip rather than a sentence.
PressableOpacity forwards accessibilityLabel and accessibilityRole. Without
them a caller has to wrap the pressable in an `accessible` View, which collapses
the subtree and hides the interactive element from screen readers. Both props
are optional, so existing callers are unaffected.
|
||
|---|---|---|
| .. | ||
| actions | ||
| client | ||
| components | ||
| constants | ||
| context | ||
| database | ||
| helpers | ||
| hooks | ||
| i18n | ||
| init | ||
| keyboard | ||
| managers | ||
| products | ||
| queries | ||
| routes | ||
| screens | ||
| store | ||
| utils | ||