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
10 changed files with 2000 additions and 1371 deletions

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ jobs:
- name: ⚙️ Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
node-version: '14'
cache: 'yarn'
- name: 🧱 Build
+1 -1
View File
@@ -27,7 +27,7 @@ jobs:
- name: ⚙️ Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
node-version: '14'
cache: 'yarn'
- name: 🧱 Build
-1
View File
@@ -1 +0,0 @@
18
+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)
+1 -1
View File
@@ -18,7 +18,7 @@
"hoist-non-react-statics": "^3.3.0",
"react": "18.0.0",
"react-dom": "18.0.0",
"react-native": "0.69.6",
"react-native": "0.69.9",
"react-native-web": "~0.18.7"
},
"devDependencies": {
+4 -4
View File
@@ -6546,10 +6546,10 @@ react-native-web@~0.18.7:
postcss-value-parser "^4.2.0"
styleq "^0.1.2"
[email protected].6:
version "0.69.6"
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.69.6.tgz#cdd1a5757d902b91b165c28fdda4e518ed6f683a"
integrity sha512-wwXpqM+12kdEYdBZCJUb5SBu95CzgejrwFeYJ78RzHZV/Sj6DBRekbsHGrDDsY4R25QXALQxy4DQYQCObVvWjA==
[email protected].9:
version "0.69.9"
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.69.9.tgz#c988dfc2e21b3b586d35a8cc57b102537e760edc"
integrity sha512-I1xqIn47RWxBToO4E6yqyIPSaK9mZnMiscMfrFpWjQr3Gdkicr9y+twmtrRszxaLdQLjHzh/M3y4qOqc3hZnpg==
dependencies:
"@jest/create-cache-key-function" "^27.0.1"
"@react-native-community/cli" "^8.0.4"
+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 & {
+1954 -1352
View File
File diff suppressed because it is too large. Load diff