0.7.0 • Published 6 years ago
universal-appstate v0.7.0
universal-appstate 
Obtain application becoming foreground or background
Supported
Installation
npm install --save universal-appstateUsage
import AppState from 'universal-appstate';
console.log(AppState.isAvailable);
console.log(AppState.currentState); // active|background
const _handleAppStateChange = (nextAppState) => {
console.log(nextAppState); // active|background
}
AppState.addEventListener('change', _handleAppStateChange);
AppState.removeEventListener('change', _handleAppStateChange);APIS
isAvailable: boolean
Whether to support.
nextAppState: 'active' | 'background'
Application becoming foreground or background.
0.7.0
6 years ago
0.6.5
8 years ago
0.6.4
8 years ago
0.6.3
8 years ago
0.6.2
8 years ago
0.6.1
8 years ago
0.6.0
8 years ago
0.5.4
8 years ago
0.5.2
8 years ago
0.5.1
8 years ago
0.5.0
8 years ago
0.4.20
9 years ago
0.4.19
9 years ago
0.4.18
9 years ago
0.4.17
9 years ago
0.4.16
9 years ago
0.4.15
9 years ago
0.5.0-beta
9 years ago
0.4.14
9 years ago
0.4.13
9 years ago
0.4.12
9 years ago