Skip to content

uu-z/react-native-timeago-simple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-timeago-simple

You can fork this library , and then do a meet your own needs. Also welcome contribute this one。

Install

yarn install react-native-timeago-simple

Usage

import TimeAgo from 'react-native-timeago-simple'

<TimeAgo language='en' time={customTime}/>

// can be return
// |en:            |zh:
// ? years ago    | ?年前
// ? months ago   | ?月前
// ? weeks ago    | ?周前
// ? days ago     | ?天前
// ? hours ago    | ?小时前
// ? miniutes ago | ?分钟前
// ? seconds ago  | ?秒前
// just now       | 刚刚

Api

field default params required
time any true
language en zh en
style any

license

MIT. Copyright (c) viii.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published