Skip to content

Commit

Permalink
finailized
Browse files Browse the repository at this point in the history
  • Loading branch information
kurucaner committed Jun 14, 2023
1 parent 1a6acf1 commit 4514e61
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
<p>This hook relies on <code><strong>react</strong></code>, <code><strong>react-native</strong></code>, and <code><strong>@react-native-async-storage/async-storage</strong></code>. Make sure these dependencies are installed in your project.</p>

```bash
npm install react react-native @react-native-async-storage/async-storage
npm install @react-native-async-storage/async-storage
```

or

```bash
yarn add react react-native @react-native-async-storage/async-storage
yarn add @react-native-async-storage/async-storage
```

then
Expand Down
8 changes: 8 additions & 0 deletions src/utils/helpers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.differenceInSeconds = void 0;
const differenceInSeconds = (date1, date2) => {
const diffInMs = Math.abs(date1.getTime() - date2.getTime());
return diffInMs / 1000;
};
exports.differenceInSeconds = differenceInSeconds;

0 comments on commit 4514e61

Please sign in to comment.