-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
36 lines (31 loc) · 961 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import React from 'react';
import Root from './src/native/index';
import configureStore from './src/store/index';
const { persistor, store } = configureStore();
export default function App() {
return <Root store={store} persistor={persistor} />;
}
// function timeSince(date) {
// var seconds = Math.floor((new Date() - date) / 1000);
// var interval = Math.floor(seconds / 31536000);
// if (interval > 1) {
// return interval + " years";
// }
// interval = Math.floor(seconds / 2592000);
// if (interval > 1) {
// return interval + " months";
// }
// interval = Math.floor(seconds / 86400);
// if (interval > 1) {
// return interval + " days";
// }
// interval = Math.floor(seconds / 3600);
// if (interval > 1) {
// return interval + " hours";
// }
// interval = Math.floor(seconds / 60);
// if (interval > 1) {
// return interval + " minutes";
// }
// return Math.floor(seconds) + " seconds";
// }