Skip to content

Commit

Permalink
fix: update pattern not firing correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
gtokman committed Sep 29, 2023
1 parent 404af7a commit c2e4846
Show file tree
Hide file tree
Showing 9 changed files with 29,482 additions and 13,534 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<br/>

The package only supports the **iOS** using [Haptica](https://github.com/efremidze/Haptica) under the hood.
The package only supports the **iOS** 13+ using [Haptico](https://github.com/iSapozhnik/Haptico) under the hood.

## Installation

Expand All @@ -38,7 +38,7 @@ There are two functions:
```js
import { haptic, hapticWithPattern } from '@candlefinance/haptics';

// light, medium, heavy, soft, rigid, warning, error, success, selectionChanged.
// light, medium, heavy, soft, rigid, warning, error, success, selectionChanged
haptic('medium');

// pattern, delay
Expand All @@ -53,8 +53,6 @@ The pattern format:
- `O` - heavy impact
- `o` - medium impact
- `.` - light impact
- `X` - rigid impact
- `x` - soft impact
- `-` wait 0.1 second

## Contributing
Expand Down
2 changes: 1 addition & 1 deletion candlefinance-haptics.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Pod::Spec.new do |s|
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
if respond_to?(:install_modules_dependencies, true)
s.dependency "Haptica"
s.dependency "Haptico"
install_modules_dependencies(s)
else
s.dependency "React-Core"
Expand Down
2 changes: 1 addition & 1 deletion example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ target 'HapticsExample' do
use_react_native!(
:path => config[:reactNativePath],
# Hermes is now enabled by default. Disable by setting this flag to false.
:hermes_enabled => flags[:hermes_enabled],
:hermes_enabled => false,
:fabric_enabled => flags[:fabric_enabled],
# Enables Flipper.
#
Expand Down
Loading

0 comments on commit c2e4846

Please sign in to comment.