Skip to content

Commit

Permalink
chore(remove-haptic): removing generateHaptic (#399)
Browse files Browse the repository at this point in the history
* chore(remove-haptic): removing generateHaptic

* chore(remove-haptic): updating author
  • Loading branch information
ammichael authored Jun 19, 2023
1 parent 7af9e66 commit effb913
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 74 deletions.
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,11 @@ Just add the library to your project and import it!

```
yarn add @platformbuilders/helpers
```
**If using Native helpers:**
2. Import:
```
yarn add react-native-haptic react-native-size-matters
```

3. Import:

```
import { getTheme } from '@platformbuilders/helpers'
import { isIOS } from '@platformbuilders/helpers/native'

Expand All @@ -62,4 +56,4 @@ import { isIOS } from '@platformbuilders/helpers/native'
| Name | Returns | Arguments |
| --------------------------------------------------- | ------- | ------------------ |
| [`isIOS`](./docs/native/isIOS.md) | boolean | |
| [`generateHaptic`](./docs/native/generateHaptic.md) | void | HapticFeedbackType |
```
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@platformbuilders/helpers",
"version": "0.9.0",
"version": "0.10.0",
"description": "Builders helpers library",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -13,7 +13,7 @@
"builders",
"helpers"
],
"author": "Builders <apps@platformbuilders.io>",
"author": "Builders <tecnologia@platformbuilders.io>",
"license": "ISC",
"private": false,
"scripts": {
Expand Down Expand Up @@ -46,7 +46,6 @@
"react": ">=18",
"react-dom": ">=18",
"react-native": ">=0.69.3",
"react-native-haptic": ">=1.0.1",
"react-native-safe-area-context": ">=4.5.3",
"react-native-size-matters": ">=0.3.0",
"styled-components": ">=5"
Expand Down Expand Up @@ -99,7 +98,6 @@
"prettier": "2.7.1",
"react": "18.2.0",
"react-native": "0.70.6",
"react-native-haptic": "1.0.1",
"react-native-safe-area-context": "^4.5.3",
"react-native-size-matters": "0.4.0",
"react-test-renderer": "18.2.0",
Expand All @@ -114,4 +112,4 @@
"dependencies": {
"lint-staged": "^13.2.2"
}
}
}
47 changes: 0 additions & 47 deletions src/native/__tests__/generateHaptic.spec.ts

This file was deleted.

8 changes: 0 additions & 8 deletions src/native/generateHaptic.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/native/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export { scale, verticalScale, moderateScale } from 'react-native-size-matters';
export * from './isIOS';
export * from './generateHaptic';
export * from './getShadow';
export * from '../shared';
export * from './useSpacingsWithSafeArea';
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7666,11 +7666,6 @@ react-native-gradle-plugin@^0.70.3:
resolved "https://registry.yarnpkg.com/react-native-gradle-plugin/-/react-native-gradle-plugin-0.70.3.tgz#cbcf0619cbfbddaa9128701aa2d7b4145f9c4fc8"
integrity sha512-oOanj84fJEXUg9FoEAQomA8ISG+DVIrTZ3qF7m69VQUJyOGYyDZmPqKcjvRku4KXlEH6hWO9i4ACLzNBh8gC0A==

react-native-haptic@1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/react-native-haptic/-/react-native-haptic-1.0.1.tgz#5ecedb6049c1b0cdeca5e31e4fbde16a622675f3"
integrity sha512-Eg5omAZYZsIGe+QsVkQrK3Krgv96qejYyfgPUfyIELZ1j6W7RnisduJJ+65aV9Nw/k6gxrmvEUC/Uuap4qf8JA==

react-native-safe-area-context@^4.5.3:
version "4.5.3"
resolved "https://registry.yarnpkg.com/react-native-safe-area-context/-/react-native-safe-area-context-4.5.3.tgz#e98eb1a73a6b3846d296545fe74760754dbaaa69"
Expand Down

0 comments on commit effb913

Please sign in to comment.