mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-12 22:20:14 +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.
|
||
|---|---|---|
| .. | ||
| friendly_date.test.tsx | ||
| index.tsx | ||