Skip to content

Commit

Permalink
Merge branch 'patch/v1.8.1' fixes #26
Browse files Browse the repository at this point in the history
  • Loading branch information
troberts-28 committed May 18, 2024
2 parents f49fa8f + ff9dabb commit 0a50aa5
Show file tree
Hide file tree
Showing 7 changed files with 320 additions and 159 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Includes iOS-style haptic and audio feedback 🍏

## Peer Dependencies 👶

This component will work in your React Native Project **without any peer dependencies**.
This component will work in your React Native Project **_without any peer dependencies_**.

### Linear Gradient

Expand All @@ -74,15 +74,15 @@ This is currently only supported on Expo with the [expo-haptics](https://www.npm

`import * as Haptics from "expo-haptics";`

**To enable the haptic feedback, you need to supply the imported `Haptics` as a prop to either TimerPickerModal or TimerPicker.**
**To enable haptic feedback, you need to supply the imported `Haptics` namespace as a prop to either TimerPickerModal or TimerPicker.**

### Audio Feedback (Click Sound)

This is currently only supported on Expo with the [expo-av](https://www.npmjs.com/package/expo-av) module:

`import { Audio } from "expo-av";`

**To enable the audio feedback, you need to supply the imported `Audio` as a prop to either TimerPickerModal or TimerPicker.**
**To enable audio feedback, you need to supply the imported `Audio` class as a prop to either TimerPickerModal or TimerPicker.**

<br>

Expand Down Expand Up @@ -394,8 +394,9 @@ return (
| pmLabel | Set the PM label if using the 12-hour picker | String | pm | false |
| disableInfiniteScroll | Disable the infinite scroll feature | Boolean | false | false |
| 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 |
| Audio | Audio Class | [expo-av](https://www.npmjs.com/package/expo-av).Audio | - | false |
| Haptics | Haptics Namespace | [expo-haptics](https://www.npmjs.com/package/expo-haptics) | - | false |
| Haptics | Haptics Namespace (required for Haptic feedback) | [expo-haptics](https://www.npmjs.com/package/expo-haptics) | - | false |
| Audio | Audio Class (required for audio feedback i.e. click sound) | [expo-av](https://www.npmjs.com/package/expo-av).Audio | - | false |
| clickSoundAsset | Custom sound asset for click sound | require(.../somefolderpath) or {uri: www.someurl} | - | false |
| pickerContainerProps | Props for the picker container | `React.ComponentProps<typeof View>` | - | false |
| pickerGradientOverlayProps | Props for both gradient overlays | `Partial<LinearGradientProps>` | - | false |
| topPickerGradientOverlayProps | Props for the top gradient overlay | `Partial<LinearGradientProps>` | - | false |
Expand Down
1 change: 0 additions & 1 deletion example/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ export default function App() {
secondLabel=""
styles={{
theme: "dark",
backgroundColor: "#202020",
pickerItem: {
fontSize: 34,
},
Expand Down
4 changes: 2 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
},
"dependencies": {
"@expo/vector-icons": "^14.0.0",
"expo": "^51.0.2",
"expo-av": "~14.0.4",
"expo": "~51.0.8",
"expo-av": "~14.0.5",
"expo-haptics": "~13.0.1",
"expo-linear-gradient": "~13.0.2",
"react": "18.2.0",
Expand Down
Loading

0 comments on commit 0a50aa5

Please sign in to comment.