mattermost-mobile-upstream/app/components/friendly_date
vish9812 3aa965d914
add opt-in narrow relative dates and accessibility props to shared components
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.
2026-10-28 11:42:01 +05:30
..
friendly_date.test.tsx add opt-in narrow relative dates and accessibility props to shared components 2026-10-28 11:42:01 +05:30
index.tsx add opt-in narrow relative dates and accessibility props to shared components 2026-10-28 11:42:01 +05:30