Skip to content

Commit

Permalink
chore: example is updated and tested
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathChaos committed May 9, 2023
1 parent 26a142f commit e41c142
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 17 deletions.
8 changes: 8 additions & 0 deletions example/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"bracketSpacing": true,
"jsxBracketSameLine": false,
"singleQuote": false,
"trailingComma": "all",
"tabWidth": 2,
"semi": true
}
7 changes: 0 additions & 7 deletions example/.prettierrc.js

This file was deleted.

16 changes: 8 additions & 8 deletions example/App.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import React from 'react';
import {View} from 'react-native';
// import Countdown from '@freakycoder/react-native-countdown';
import Countdown from './lib/Countdown';
import moment from 'moment';
import React from "react";
import { View } from "react-native";
import Countdown from "@freakycoder/react-native-countdown";
import moment from "moment";

const App = () => {
return (
<View
style={{
flex: 1,
alignItems: 'center',
justifyContent: 'center',
}}>
alignItems: "center",
justifyContent: "center",
}}
>
<Countdown
start={moment(1578247689000)}
end={moment(1578557635000)}
Expand Down
16 changes: 16 additions & 0 deletions example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"test": "jest"
},
"dependencies": {
"@freakycoder/react-native-countdown": "^1.0.0",
"moment": "^2.29.4",
"moment-duration-format": "^2.3.2",
"react": "18.2.0",
Expand Down
9 changes: 7 additions & 2 deletions example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1094,6 +1094,11 @@
"resolved" "https://registry.npmjs.org/@eslint/js/-/js-8.40.0.tgz"
"version" "8.40.0"

"@freakycoder/react-native-countdown@^1.0.0":
"integrity" "sha512-lWtz2rGiNfjLZX2Tzn4qXvsVkrCvUSIG1Tozvs5Tx5OYqRVkth/K8b4ZwaEvj/4lAx0frVoiEtyrLlTR1eCi8g=="
"resolved" "https://registry.npmjs.org/@freakycoder/react-native-countdown/-/react-native-countdown-1.0.0.tgz"
"version" "1.0.0"

"@hapi/hoek@^9.0.0":
"integrity" "sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ=="
"resolved" "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz"
Expand Down Expand Up @@ -5209,12 +5214,12 @@
dependencies:
"minimist" "^1.2.6"

"moment-duration-format@^2.3.2":
"moment-duration-format@^2.3.2", "moment-duration-format@>= 2.3.2":
"integrity" "sha512-cBMXjSW+fjOb4tyaVHuaVE/A5TqkukDWiOfxxAjY+PEqmmBQlLwn+8OzwPiG3brouXKY5Un4pBjAeB6UToXHaQ=="
"resolved" "https://registry.npmjs.org/moment-duration-format/-/moment-duration-format-2.3.2.tgz"
"version" "2.3.2"

"moment@^2.29.4":
"moment@^2.29.4", "moment@>= 2.24.0":
"integrity" "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w=="
"resolved" "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz"
"version" "2.29.4"
Expand Down

0 comments on commit e41c142

Please sign in to comment.