Skip to content

Commit 85fc593

Browse files
authored
Merge pull request #9 from troberts-28/patch-v1.2.1
Patch v1.2.1
2 parents 495b11b + 74b8605 commit 85fc593

File tree

9 files changed

+528
-348
lines changed

9 files changed

+528
-348
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -377,28 +377,32 @@ The following custom styles can be supplied to re-style the component in any way
377377

378378
## Methods 🔄
379379

380-
### TimerPickerModal
380+
### TimerPicker
381381

382-
The library exposes a TimerPickerModalRef type, which can be used to type your ref to the modal:
382+
The library exposes a TimerPickerRef type, which can be used to type your ref to the picker:
383383

384384
```javascript
385-
const timerPickerModalRef = useRef<TimerPickerModalRef>(null);
385+
const timerPickerRef = useRef<TimerPickerRef>(null);
386386
```
387387

388388
It has the following available methods:
389389

390390
`reset` - imperative method to reset the selected duration to their initial values.
391391

392392
```javascript
393-
timerPickerModalRef.current.reset();
393+
timerPickerRef.current.reset(options?: { animated: boolean });
394394
```
395395

396396
`setValue` - imperative method to set the selected duration to a particular value
397397

398398
```javascript
399-
timerPickerModalRef.current.setValue({hours: number, minutes: number, seconds: number});
399+
timerPickerRef.current.setValue({ hours: number, minutes: number, seconds: number }, options?: { animated: boolean });
400400
```
401401

402+
### TimerPickerModal
403+
404+
An identical ref is also exposed for the TimerPickerModal component.
405+
402406
## License 📝
403407

404408
This project is licensed under the [MIT License](LICENSE).

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"web": "npx expo start --web"
1010
},
1111
"dependencies": {
12-
"expo": "^49.0.7",
12+
"expo": "^49.0.8",
1313
"expo-linear-gradient": ">=12.0.1",
1414
"react": ">=18.1.0",
1515
"react-native": ">=0.70.8"

example/yarn.lock

Lines changed: 65 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2490,10 +2490,10 @@ babel-plugin-transform-flow-enums@^0.0.2:
24902490
dependencies:
24912491
"@babel/plugin-syntax-flow" "^7.12.1"
24922492

2493-
babel-preset-expo@~9.5.1:
2494-
version "9.5.1"
2495-
resolved "https://registry.yarnpkg.com/babel-preset-expo/-/babel-preset-expo-9.5.1.tgz#5ceab896ac5ac29f32dfaf5a653e93965bbc0de1"
2496-
integrity sha512-dOLhi5C1hNOAMFYjRlsP1axswMSf9MxX7zsez9kmwrm46cyev2l2ThQ8VdDig/YdwhNScd7sQ/lovrOTObk4Hg==
2493+
babel-preset-expo@~9.5.2:
2494+
version "9.5.2"
2495+
resolved "https://registry.yarnpkg.com/babel-preset-expo/-/babel-preset-expo-9.5.2.tgz#5ed1756c8434ca972d7a940e4f13570a283641df"
2496+
integrity sha512-hU1G1TDiikuXV6UDZjPnX+WdbjbtidDiYhftMEVrZQSst45pDPVBWbM41TUKrpJMwv4FypsLzK+378gnMPRVWQ==
24972497
dependencies:
24982498
"@babel/plugin-proposal-decorators" "^7.12.9"
24992499
"@babel/plugin-proposal-export-namespace-from" "^7.18.9"
@@ -2502,7 +2502,7 @@ babel-preset-expo@~9.5.1:
25022502
"@babel/preset-env" "^7.20.0"
25032503
babel-plugin-module-resolver "^5.0.0"
25042504
babel-plugin-react-native-web "~0.18.10"
2505-
metro-react-native-babel-preset "0.76.7"
2505+
metro-react-native-babel-preset "0.76.8"
25062506

25072507
babel-preset-fbjs@^3.4.0:
25082508
version "3.4.0"
@@ -3608,10 +3608,10 @@ expo-linear-gradient@>=12.0.1:
36083608
resolved "https://registry.yarnpkg.com/expo-linear-gradient/-/expo-linear-gradient-12.3.0.tgz#7abd8fedbf0138c86805aebbdfbbf5e5fa865f19"
36093609
integrity sha512-f9e+Oxe5z7fNQarTBZXilMyswlkbYWQHONVfq8MqmiEnW3h9XsxxmVJLG8uVQSQPUsbW+x1UUT/tnU6mkMWeLg==
36103610

3611-
expo-modules-autolinking@1.5.0:
3612-
version "1.5.0"
3613-
resolved "https://registry.yarnpkg.com/expo-modules-autolinking/-/expo-modules-autolinking-1.5.0.tgz#64d6ea4fd77ba2d578dd5c98af0a7630e30f2be3"
3614-
integrity sha512-i9zll5xNYh0/sjaa6hpZlTHodKEu2tMEFsJJYsfBMTt8G9J8gGhalOydrX/Ql1E8bQ4GxnLAqrM7duR0Tj2VTQ==
3611+
expo-modules-autolinking@1.5.1:
3612+
version "1.5.1"
3613+
resolved "https://registry.yarnpkg.com/expo-modules-autolinking/-/expo-modules-autolinking-1.5.1.tgz#363f90c172769ce12bf56c7be9ca0897adfc7a81"
3614+
integrity sha512-yt5a1VCp2BF9CrsO689PCD5oXKP14MMhnOanQMvDn4BDpURYfzAlDVGC5fZrNQKtwn/eq3bcrxIwZ7D9QjVVRg==
36153615
dependencies:
36163616
"@expo/config" "~8.1.0"
36173617
chalk "^4.1.0"
@@ -3620,33 +3620,33 @@ expo-modules-autolinking@1.5.0:
36203620
find-up "^5.0.0"
36213621
fs-extra "^9.1.0"
36223622

3623-
expo-modules-core@1.5.9:
3624-
version "1.5.9"
3625-
resolved "https://registry.yarnpkg.com/expo-modules-core/-/expo-modules-core-1.5.9.tgz#d8bc397860cabb23f735f5baac3602bd73231671"
3626-
integrity sha512-kQxllZfus7wM0O6X0Ud+SOnbH/kbxtEAQp2gkvDq3P3kqhtafue/H9CPDX04uWc/pypvp9vp/sZ+qvA0alaVuQ==
3623+
expo-modules-core@1.5.10:
3624+
version "1.5.10"
3625+
resolved "https://registry.yarnpkg.com/expo-modules-core/-/expo-modules-core-1.5.10.tgz#b829ef0c65208870555d604d4602bfe84d0e8bb7"
3626+
integrity sha512-+m+poHkhjAhRZmngSLUpJJoxhjoExYKSr4J5luy4N+YMlowK31Zewztg4xsPrNRoPvGK/B5uCm0UEzIQvLsNGg==
36273627
dependencies:
36283628
compare-versions "^3.4.0"
36293629
invariant "^2.2.4"
36303630

3631-
expo@^49.0.7:
3632-
version "49.0.7"
3633-
resolved "https://registry.yarnpkg.com/expo/-/expo-49.0.7.tgz#b8fdc9550757f2a848fd08d3e9e7382b74b29ac4"
3634-
integrity sha512-KGyZMuU83LNnWbfzdFrC45AhUDDAYKir7MawZJ7N8pBmHbLF8txlKq+KeZcwavD8fZREFYhSGJdTgfKPiXQymg==
3631+
expo@^49.0.8:
3632+
version "49.0.8"
3633+
resolved "https://registry.yarnpkg.com/expo/-/expo-49.0.8.tgz#97e2ffcf239326898a3b803394e069f7df7a381e"
3634+
integrity sha512-lkTRwMvJP8j7KAHJB+aZqI9dH1hw7j2QE1X9Okpcf+t0deGqH36XqkjUCcU6KYgCOjSnt8fvRm89TJR5Oq0ElA==
36353635
dependencies:
36363636
"@babel/runtime" "^7.20.0"
36373637
"@expo/cli" "0.10.11"
36383638
"@expo/config" "8.1.2"
36393639
"@expo/config-plugins" "7.2.5"
36403640
"@expo/vector-icons" "^13.0.0"
3641-
babel-preset-expo "~9.5.1"
3641+
babel-preset-expo "~9.5.2"
36423642
expo-application "~5.3.0"
36433643
expo-asset "~8.10.1"
36443644
expo-constants "~14.4.2"
36453645
expo-file-system "~15.4.3"
36463646
expo-font "~11.4.0"
36473647
expo-keep-awake "~12.3.0"
3648-
expo-modules-autolinking "1.5.0"
3649-
expo-modules-core "1.5.9"
3648+
expo-modules-autolinking "1.5.1"
3649+
expo-modules-core "1.5.10"
36503650
fbemitter "^3.0.0"
36513651
invariant "^2.2.4"
36523652
md5-file "^3.2.3"
@@ -5219,6 +5219,51 @@ metro-react-native-babel-preset@0.76.7:
52195219
babel-plugin-transform-flow-enums "^0.0.2"
52205220
react-refresh "^0.4.0"
52215221

5222+
metro-react-native-babel-preset@0.76.8:
5223+
version "0.76.8"
5224+
resolved "https://registry.yarnpkg.com/metro-react-native-babel-preset/-/metro-react-native-babel-preset-0.76.8.tgz#7476efae14363cbdfeeec403b4f01d7348e6c048"
5225+
integrity sha512-Ptza08GgqzxEdK8apYsjTx2S8WDUlS2ilBlu9DR1CUcHmg4g3kOkFylZroogVAUKtpYQNYwAvdsjmrSdDNtiAg==
5226+
dependencies:
5227+
"@babel/core" "^7.20.0"
5228+
"@babel/plugin-proposal-async-generator-functions" "^7.0.0"
5229+
"@babel/plugin-proposal-class-properties" "^7.18.0"
5230+
"@babel/plugin-proposal-export-default-from" "^7.0.0"
5231+
"@babel/plugin-proposal-nullish-coalescing-operator" "^7.18.0"
5232+
"@babel/plugin-proposal-numeric-separator" "^7.0.0"
5233+
"@babel/plugin-proposal-object-rest-spread" "^7.20.0"
5234+
"@babel/plugin-proposal-optional-catch-binding" "^7.0.0"
5235+
"@babel/plugin-proposal-optional-chaining" "^7.20.0"
5236+
"@babel/plugin-syntax-dynamic-import" "^7.8.0"
5237+
"@babel/plugin-syntax-export-default-from" "^7.0.0"
5238+
"@babel/plugin-syntax-flow" "^7.18.0"
5239+
"@babel/plugin-syntax-nullish-coalescing-operator" "^7.0.0"
5240+
"@babel/plugin-syntax-optional-chaining" "^7.0.0"
5241+
"@babel/plugin-transform-arrow-functions" "^7.0.0"
5242+
"@babel/plugin-transform-async-to-generator" "^7.20.0"
5243+
"@babel/plugin-transform-block-scoping" "^7.0.0"
5244+
"@babel/plugin-transform-classes" "^7.0.0"
5245+
"@babel/plugin-transform-computed-properties" "^7.0.0"
5246+
"@babel/plugin-transform-destructuring" "^7.20.0"
5247+
"@babel/plugin-transform-flow-strip-types" "^7.20.0"
5248+
"@babel/plugin-transform-function-name" "^7.0.0"
5249+
"@babel/plugin-transform-literals" "^7.0.0"
5250+
"@babel/plugin-transform-modules-commonjs" "^7.0.0"
5251+
"@babel/plugin-transform-named-capturing-groups-regex" "^7.0.0"
5252+
"@babel/plugin-transform-parameters" "^7.0.0"
5253+
"@babel/plugin-transform-react-display-name" "^7.0.0"
5254+
"@babel/plugin-transform-react-jsx" "^7.0.0"
5255+
"@babel/plugin-transform-react-jsx-self" "^7.0.0"
5256+
"@babel/plugin-transform-react-jsx-source" "^7.0.0"
5257+
"@babel/plugin-transform-runtime" "^7.0.0"
5258+
"@babel/plugin-transform-shorthand-properties" "^7.0.0"
5259+
"@babel/plugin-transform-spread" "^7.0.0"
5260+
"@babel/plugin-transform-sticky-regex" "^7.0.0"
5261+
"@babel/plugin-transform-typescript" "^7.5.0"
5262+
"@babel/plugin-transform-unicode-regex" "^7.0.0"
5263+
"@babel/template" "^7.0.0"
5264+
babel-plugin-transform-flow-enums "^0.0.2"
5265+
react-refresh "^0.4.0"
5266+
52225267
metro-react-native-babel-transformer@0.76.7:
52235268
version "0.76.7"
52245269
resolved "https://registry.yarnpkg.com/metro-react-native-babel-transformer/-/metro-react-native-babel-transformer-0.76.7.tgz#ccc7c25b49ee8a1860aafdbf48bfa5441d206f8f"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"url": "https://github.com/troberts-28"
77
},
88
"license": "MIT",
9-
"version": "1.2.0",
9+
"version": "1.2.1",
1010
"main": "dist/index.js",
1111
"types": "dist/index.d.ts",
1212
"scripts": {

0 commit comments

Comments
 (0)