react-native-session-length

0.0.1 • Public • Published

react-native-session-length

#Why If you want to timeout people's sessions or show something when they have opened the app for the first time in a while. This covers the both use-cases of :

  • Bringing the app to the foreground.
  • Opening the app from force close.

#Usage

import SessionLength from 'react-native-session-length';

SessionLength((milliseconds)=>{
  console.log(`It has been ${milliseconds}ms since you last opened the app.`;
});

Readme

Keywords

none

Package Sidebar

Install

npm i react-native-session-length

Weekly Downloads

2

Version

0.0.1

License

none

Last publish

Collaborators

  • kyle-ssg