An auto-updating timeago component for React Native using moment.js to display relative timestamps.
react-native-timeago is a React Native component that automatically displays and updates relative timestamps like '2 minutes ago' or '3 days ago' in mobile applications. It solves the problem of showing dynamic, human-readable time differences without manual refresh logic, using moment.js for reliable time parsing and formatting.
React Native developers building mobile applications that need to display timestamps in a user-friendly, auto-updating format, such as social media apps, messaging platforms, or activity feeds.
Developers choose react-native-timeago because it provides a simple, configurable component that handles time formatting and auto-updates out of the box, reducing boilerplate code. Its integration with moment.js ensures reliable time calculations and localization support.
An auto-updating timeago component for React Native using moment.js
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Automatically refreshes displayed time at configurable intervals using the interval prop, eliminating the need for manual update logic.
Accepts strings, numbers, arrays, or Date instances as timestamp input, leveraging moment.js for robust parsing as shown in the usage examples.
Works with moment.js locale files for internationalization, allowing easy adaptation to different languages with a simple locale setup.
Provides a drop-in component with sensible defaults and supports all React Native Text props, making it easy to style and use.
Relies entirely on moment.js, a large and legacy library that can bloat bundle size and is being phased out in favor of lighter alternatives.
The project's last documented activity is from 2018, suggesting it may not be actively maintained or compatible with recent React Native versions.
Offers only basic props like hideAgo and interval, lacking advanced features such as custom format strings or interactive time adjustments.