Compare commits

..
Author SHA1 Message Date
github-actions[bot] 9dd71637bb chore(master): release 4.1.1 (#333)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-02-25 16:46:44 +01:00
David Prevost b7e050c9ab fix: Removal of BackHandler.removeEventListener in react-native (#339) 2025-02-21 12:50:07 +01:00
Stephen Tuso 1ce802b8f0 fix: show touch feedback on iOS when using custom action sheet (#329) 2024-12-16 10:48:21 +01:00
BradByte d778588f78 Merge pull request #301 from expo/release-please--branches--master--components--react-native-action-sheet
chore(master): release 4.1.0
2024-05-15 13:42:53 -05:00
Brad Bumbalough bd7183604b chore: update release please 2024-05-15 13:39:51 -05:00
github-actions[bot] c12edae256 chore(master): release 4.1.0 2024-05-15 18:39:27 +00:00
BradByte bc33f9f4d0 feat: update peer dep (#324)
- fixed #323
2024-05-15 13:38:19 -05:00
BradByte b018847868 Merge pull request #322 from expo/dependabot/npm_and_yarn/example/tar-6.2.1
chore(deps): bump tar from 6.1.11 to 6.2.1 in /example
2024-04-16 11:51:23 -05:00
dependabot[bot] fbabe9781c chore(deps): bump tar from 6.1.11 to 6.2.1 in /example
Bumps [tar](https://github.com/isaacs/node-tar) from 6.1.11 to 6.2.1.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v6.1.11...v6.2.1)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
2024-04-11 02:49:18 +00:00
BradByte 3ae2918950 Merge pull request #321 from expo/dependabot/npm_and_yarn/example/ip-1.1.9
chore(deps): bump ip from 1.1.5 to 1.1.9 in /example
2024-04-05 23:09:41 -05:00
dependabot[bot] 761f65e36a chore(deps): bump ip from 1.1.5 to 1.1.9 in /example
Bumps [ip](https://github.com/indutny/node-ip) from 1.1.5 to 1.1.9.
- [Commits](https://github.com/indutny/node-ip/compare/v1.1.5...v1.1.9)

---
updated-dependencies:
- dependency-name: ip
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
2024-04-05 06:36:47 +00:00
BradByte 78a162d26d Merge pull request #314 from expo/dependabot/npm_and_yarn/example/babel/traverse-7.23.2
chore(deps): bump @babel/traverse from 7.5.0 to 7.23.2 in /example
2024-04-05 01:36:27 -05:00
BradByte e0f622c79e Merge pull request #315 from expo/dependabot/npm_and_yarn/babel/traverse-7.23.2
chore(deps): bump @babel/traverse from 7.12.9 to 7.23.2
2024-04-05 01:36:17 -05:00
BradByte f344bdbcd1 Merge pull request #316 from keima/fix-connectactionsheet-return-type
Fix connectActionSheet to exclude ActionSheetProps from return type
2024-04-05 01:36:01 -05:00
Kouta Imanaka 8211a81ba9 remove ActionSheetProps 2023-10-23 01:21:50 +09:00
dependabot[bot] 1e7f806438 chore(deps): bump @babel/traverse from 7.12.9 to 7.23.2
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.12.9 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-10-17 01:58:32 +00:00
dependabot[bot] a78534b9e7 chore(deps): bump @babel/traverse from 7.5.0 to 7.23.2 in /example
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.5.0 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-10-17 01:58:31 +00:00
BradByte e3c2306169 Merge pull request #308 from expo/dependabot/npm_and_yarn/example/semver-5.7.2
chore(deps): bump semver from 5.7.0 to 5.7.2 in /example
2023-08-02 11:06:26 -05:00
BradByte f800cb2a1d Merge pull request #309 from expo/dependabot/npm_and_yarn/semver-5.7.2
chore(deps): bump semver from 5.7.1 to 5.7.2
2023-08-02 11:06:15 -05:00
BradByte a76bc0bf22 Merge pull request #310 from expo/dependabot/npm_and_yarn/word-wrap-1.2.4
chore(deps): bump word-wrap from 1.2.3 to 1.2.4
2023-08-02 11:06:01 -05:00
dependabot[bot] 312db874f5 chore(deps): bump word-wrap from 1.2.3 to 1.2.4
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-07-19 00:36:23 +00:00
dependabot[bot] ecc8acb3a9 chore(deps): bump semver from 5.7.1 to 5.7.2
Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v5.7.1...v5.7.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-07-12 09:15:27 +00:00
dependabot[bot] 7d1941dbde chore(deps): bump semver from 5.7.0 to 5.7.2 in /example
Bumps [semver](https://github.com/npm/node-semver) from 5.7.0 to 5.7.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v5.7.0...v5.7.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-07-11 16:23:31 +00:00
9 changed files with 3482 additions and 3271 deletions

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release-created: ${{ steps.release.outputs.release_created }}
release-created: ${{ steps.release.outputs.releases_created }}
steps:
- uses: google-github-actions/release-please-action@v3
id: release
+20
View File
@@ -1,5 +1,25 @@
# Changelog
## [4.1.1](https://github.com/expo/react-native-action-sheet/compare/v4.1.0...v4.1.1) (2025-02-21)
### Bug Fixes
* Removal of `BackHandler.removeEventListener` in react-native ([#339](https://github.com/expo/react-native-action-sheet/issues/339)) ([b7e050c](https://github.com/expo/react-native-action-sheet/commit/b7e050c9abab17b9a3ac21afed5bc73cecbecd6d))
* show touch feedback on iOS when using custom action sheet ([#329](https://github.com/expo/react-native-action-sheet/issues/329)) ([1ce802b](https://github.com/expo/react-native-action-sheet/commit/1ce802b8f095f9c553002dd84cae694a30c2dc01))
## [4.1.0](https://github.com/expo/react-native-action-sheet/compare/v4.0.1...v4.1.0) (2024-05-15)
### Features
* update peer dep ([#324](https://github.com/expo/react-native-action-sheet/issues/324)) ([bc33f9f](https://github.com/expo/react-native-action-sheet/commit/bc33f9f4d0c171ff17c098f94fab1b22ed6816ed))
### Bug Fixes
* use release-please instead of semantic release ([#300](https://github.com/expo/react-native-action-sheet/issues/300)) ([b35a403](https://github.com/expo/react-native-action-sheet/commit/b35a403a213d596252ec5e8a20db5291396fafc0))
## [4.0.1](https://github.com/expo/react-native-action-sheet/compare/v4.0.0...v4.0.1) (2022-11-04)
+9 -9
View File
@@ -14,17 +14,17 @@
"dependencies": {
"@expo/react-native-action-sheet": "../src",
"@expo/vector-icons": "^13.0.0",
"expo": "^48.0.0",
"expo": "^46.0.0",
"hoist-non-react-statics": "^3.3.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.71.3",
"react-native-web": "~0.18.11"
"react": "18.0.0",
"react-dom": "18.0.0",
"react-native": "0.69.9",
"react-native-web": "~0.18.7"
},
"devDependencies": {
"@types/react": "~18.2.0",
"@types/react-native": "~0.71.3",
"babel-preset-expo": "^9.3.0",
"typescript": "^4.9.4"
"@types/react": "~18.0.0",
"@types/react-native": "~0.69.1",
"babel-preset-expo": "~9.2.0",
"typescript": "^4.6.3"
}
}
+1347 -1848
View File
File diff suppressed because it is too large. Load diff
+5 -4
View File
@@ -1,6 +1,6 @@
{
"name": "@expo/react-native-action-sheet",
"version": "4.0.1",
"version": "4.1.1",
"description": "A cross-platform ActionSheet for React Native",
"react-native": "lib/module/index.js",
"types": "lib/typescript/index.d.ts",
@@ -43,12 +43,13 @@
"husky": "^3.0.0",
"lint-staged": "^9.2.0",
"prettier": "^2.3.2",
"react": "^16.8.6",
"react-native": "https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz",
"react": "18.0.0",
"react-dom": "18.0.0",
"react-native": "0.69.9",
"typescript": "^3.5.3"
},
"peerDependencies": {
"react": ">=16.3.0"
"react": ">=18.0.0"
},
"@react-native-community/bob": {
"source": "src",
+11 -4
View File
@@ -4,6 +4,7 @@ import {
BackHandler,
Easing,
Modal,
NativeEventSubscription,
Platform,
StyleSheet,
TouchableWithoutFeedback,
@@ -38,6 +39,7 @@ const ESCAPE_KEY = 'Escape';
// Has same API as https://facebook.github.io/react-native/docs/actionsheetios.html
export default class CustomActionSheet extends React.Component<Props, State> {
_actionSheetHeight = 360;
_backHandlerListener: NativeEventSubscription | undefined;
state: State = {
isVisible: false,
@@ -227,8 +229,12 @@ export default class CustomActionSheet extends React.Component<Props, State> {
this._deferAfterAnimation = undefined;
}
});
// @ts-ignore: Argument of type '"actionSheetHardwareBackPress"' is not assignable to parameter of type '"hardwareBackPress"'
BackHandler.addEventListener('actionSheetHardwareBackPress', this._selectCancelButton);
this._backHandlerListener = BackHandler.addEventListener(
// @ts-ignore: Argument of type '"actionSheetHardwareBackPress"' is not assignable to parameter of type '"hardwareBackPress"'
'actionSheetHardwareBackPress',
this._selectCancelButton
);
};
_selectCancelButton = () => {
@@ -269,8 +275,9 @@ export default class CustomActionSheet extends React.Component<Props, State> {
return false;
}
// @ts-ignore: Argument of type '"actionSheetHardwareBackPress"' is not assignable to parameter of type '"hardwareBackPress"'
BackHandler.removeEventListener('actionSheetHardwareBackPress', this._selectCancelButton);
if (this._backHandlerListener) {
this._backHandlerListener.remove();
}
this.setState({
isAnimating: true,
});
@@ -7,7 +7,7 @@ import {
TouchableWithoutFeedbackProps,
} from 'react-native';
// This TouchableOpacity has the same staic method of TouchableNativeFeedback
// This TouchableOpacity has the same static method of TouchableNativeFeedback
class CustomTouchableOpacity extends React.Component {
static SelectableBackground = () => ({});
static SelectableBackgroundBorderless = () => ({});
@@ -19,8 +19,8 @@ class CustomTouchableOpacity extends React.Component {
}
const TouchableComponent = Platform.select({
web: CustomTouchableOpacity,
default: Platform.Version <= 20 ? CustomTouchableOpacity : TouchableNativeFeedback,
default: CustomTouchableOpacity,
android: Platform.Version <= 20 ? CustomTouchableOpacity : TouchableNativeFeedback,
});
type Props = TouchableWithoutFeedbackProps & {
+1 -1
View File
@@ -6,7 +6,7 @@ import { ActionSheetProps } from './types';
export default function connectActionSheet<OwnProps = any>(
WrappedComponent: React.ComponentType<OwnProps & ActionSheetProps>
): React.FunctionComponent<OwnProps & ActionSheetProps> {
): React.FunctionComponent<OwnProps> {
const ConnectedActionSheet = (props: OwnProps) => {
return (
<Consumer>
+2085 -1401
View File
File diff suppressed because it is too large. Load diff