react-native-timer-picker 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +15 -15
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -11,7 +11,7 @@ Great for timers, alarms and duration inputs ⏰🕰️⏳
11
11
 
12
12
  Works with Expo and bare React Native apps.
13
13
 
14
- - [Demos 📱](#demos-)
14
+ - [Demos 📱](#demos-📱)
15
15
  - [Peer Dependencies 👶](#peer-dependencies-)
16
16
  - [Installation 🚀](#installation-)
17
17
  - [Examples 😎](#examples-)
@@ -23,7 +23,7 @@ Works with Expo and bare React Native apps.
23
23
  - [TimerPicker ⏲️](#timerpicker-️)
24
24
  - [Custom Styles 👗](#custom-styles-)
25
25
  - [TimerPickerModal ⏰](#timerpickermodal-)
26
- - [Custom Styles 👗](#custom-styles--1)
26
+ - [Custom Styles 👕](#custom-styles--1)
27
27
  - [Methods 🔄](#methods-)
28
28
  - [TimerPickerModal](#timerpickermodal)
29
29
  - [License 📝](#license-)
@@ -299,7 +299,7 @@ return (
299
299
 
300
300
  ### TimerPicker ⏲️
301
301
 
302
- | Prop | Description | Type | Default Value | Required |
302
+ | Prop | Description | Type | Default | Required |
303
303
  | :--------------------------:|:----------------------------------------------------------|:-------------------------------------------------:|:-------------------:|:--------:|
304
304
  | onDurationChange | Callback when the duration changes | `(duration: { hours: number, minutes: number, seconds: number }) => void` | - | false |
305
305
  | initialHours | Initial value for hours | Number | - | false |
@@ -313,10 +313,10 @@ return (
313
313
  | secondLabel | Label for the seconds picker | String | s | false |
314
314
  | padWithNItems | Number of items to pad the picker with on either side | Number | 1 | false |
315
315
  | disableInfiniteScroll | Disable the infinite scroll feature | Boolean | false | false |
316
- | LinearGradient | Linear Gradient Component | expo-linear-gradient.LinearGradient or react-native-linear-gradient.default | - | false |
316
+ | LinearGradient | Linear Gradient Component | [expo-linear-gradient](https://www.npmjs.com/package/expo-linear-gradient).LinearGradient or [react-native-linear-gradient](https://www.npmjs.com/package/react-native-linear-gradient).default | - | false |
317
317
  | pickerContainerProps | Props for the picker container | `React.ComponentProps<typeof View>` | - | false |
318
318
  | pickerGradientOverlayProps | Props for the gradient overlay | LinearGradientProps | - | false |
319
- | styles | Custom styles for the timer picker | [CustomTimerPickerStyles](#custom-styles) | - | false |
319
+ | styles | Custom styles for the timer picker | [CustomTimerPickerStyles](#custom-styles-) | - | false |
320
320
 
321
321
  #### Custom Styles 👗
322
322
 
@@ -336,29 +336,29 @@ The following custom styles can be supplied to re-style the component in any way
336
336
 
337
337
  ### TimerPickerModal ⏰
338
338
 
339
- The TimerPickerModal component accepts all [TimerPicker props](#timerpicker), and the below additional props.
339
+ The TimerPickerModal component accepts all [TimerPicker props](#timerpicker-️), and the below additional props.
340
340
 
341
- | Prop | Description | Type | Default Value | Required |
341
+ | Prop | Description | Type | Default | Required |
342
342
  | :--------------------:|:----------------------------------------------------------|:---------------------------------------------------------:|:-------------------:|:--------:|
343
343
  | visible | Determines if the modal is visible | Boolean | - | true |
344
344
  | setIsVisible | Callback to set modal visibility | `(isVisible: boolean) => void` | - | true |
345
345
  | onConfirm | Callback when the user confirms the selected time | `({ hours, minutes, seconds }: { hours: number, minutes: number, seconds: number }) => void` | - | true |
346
346
  | onCancel | Callback when the user cancels the selection | `() => void` | - | false |
347
- | closeOnOverlayPress | Determines if the modal should close on overlay press | Boolean | - | false |
348
- | hideCancelButton | Hide the cancel button within the modal | Boolean | - | false |
349
- | confirmButtonText | Text for the confirm button | String | - | false |
350
- | cancelButtonText | Text for the cancel button | String | - | false |
347
+ | closeOnOverlayPress | Determines if the modal should close on overlay press | Boolean | false | false |
348
+ | hideCancelButton | Hide the cancel button within the modal | Boolean | false | false |
349
+ | confirmButtonText | Text for the confirm button | String | Confirm | false |
350
+ | cancelButtonText | Text for the cancel button | String | Cancel | false |
351
351
  | modalTitle | Title text for the modal | String | - | false |
352
352
  | modalProps | Props for the main modal component | `React.ComponentProps<typeof Modal>` | - | false |
353
353
  | containerProps | Props for the main container | `React.ComponentProps<typeof View>` | - | false |
354
354
  | contentContainerProps | Props for the content container | `React.ComponentProps<typeof View>` | - | false |
355
355
  | buttonContainerProps | Props for the button container | `React.ComponentProps<typeof View>` | - | false |
356
356
  | modalTitleProps | Props for the modal title text component | `React.ComponentProps<typeof Text>` | - | false |
357
- | styles | Custom styles for the timer picker modal | [CustomTimerPickerModalStyles](#custom-styles-1) | - | false |
357
+ | styles | Custom styles for the timer picker modal | [CustomTimerPickerModalStyles](#custom-styles--1) | - | false |
358
358
 
359
- #### Custom Styles 👗
359
+ #### Custom Styles 👕
360
360
 
361
- The following custom styles can be supplied to re-style the component in any way. You can also supply all of the styles specified in [CustomTimerPickerStyles](#custom-styles). Various styles are applied by default - you can take a look at these [here](src/components/TimerPickerModal.styles.ts).
361
+ The following custom styles can be supplied to re-style the component in any way. You can also supply all of the styles specified in [CustomTimerPickerStyles](#custom-styles-). Various styles are applied by default - you can take a look at these [here](src/components/TimerPickerModal.styles.ts).
362
362
 
363
363
  | Style Prop | Description | Type |
364
364
  | :---------------: | :------------------------------------- | :-------: |
@@ -383,4 +383,4 @@ timerPickerModalRef.current.reset();
383
383
 
384
384
  ## License 📝
385
385
 
386
- This project is licensed under the MIT License.
386
+ This project is licensed under the [MIT License](LICENSE).
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/troberts-28"
7
7
  },
8
8
  "license": "MIT",
9
- "version": "1.1.2",
9
+ "version": "1.1.3",
10
10
  "main": "dist/index.js",
11
11
  "types": "dist/index.d.ts",
12
12
  "scripts": {