-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: migrate to bluesky-social/react-native-bottom-sheet (#5769)
* feat: migrate to bluesky-social/react-native-bottom-sheet * feat: adds accessibility to action sheet items * test: fix tests * fix lint * fix types
- Loading branch information
Showing
10 changed files
with
67 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
diff --git a/node_modules/@discord/bottom-sheet/src/components/bottomSheetHandleContainer/BottomSheetHandleContainer.tsx b/node_modules/@discord/bottom-sheet/src/components/bottomSheetHandleContainer/BottomSheetHandleContainer.tsx | ||
index 2219e0f..59f90ba 100644 | ||
--- a/node_modules/@discord/bottom-sheet/src/components/bottomSheetHandleContainer/BottomSheetHandleContainer.tsx | ||
+++ b/node_modules/@discord/bottom-sheet/src/components/bottomSheetHandleContainer/BottomSheetHandleContainer.tsx | ||
@@ -92,10 +92,6 @@ function BottomSheetHandleContainerComponent({ | ||
> | ||
<Animated.View | ||
key="BottomSheetHandleContainer" | ||
- accessible={true} | ||
- accessibilityRole="adjustable" | ||
- accessibilityLabel="Bottom Sheet handle" | ||
- accessibilityHint="Drag up or down to extend or minimize the Bottom Sheet" | ||
onLayout={handleContainerLayout} | ||
> | ||
<HandleComponent | ||
diff --git a/node_modules/@discord/bottom-sheet/src/utilities/animate.ts b/node_modules/@discord/bottom-sheet/src/utilities/animate.ts | ||
index 0ce4c9a..9562675 100644 | ||
--- a/node_modules/@discord/bottom-sheet/src/utilities/animate.ts | ||
+++ b/node_modules/@discord/bottom-sheet/src/utilities/animate.ts | ||
@@ -4,6 +4,7 @@ import { | ||
withTiming, | ||
withSpring, | ||
AnimationCallback, | ||
+ ReduceMotion, | ||
} from 'react-native-reanimated'; | ||
import { ANIMATION_CONFIGS, ANIMATION_METHOD } from '../constants'; | ||
|
||
@@ -26,6 +27,8 @@ export const animate = ({ | ||
configs = ANIMATION_CONFIGS; | ||
} | ||
|
||
+ configs.reduceMotion = ReduceMotion.Never; | ||
+ | ||
// detect animation type | ||
const type = | ||
'duration' in configs || 'easing' in configs |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2330,6 +2330,13 @@ | |
dependencies: | ||
"@jridgewell/trace-mapping" "0.3.9" | ||
|
||
"@discord/bottom-sheet@bluesky-social/react-native-bottom-sheet": | ||
version "4.6.1" | ||
resolved "https://codeload.github.com/bluesky-social/react-native-bottom-sheet/tar.gz/28a87d1bb55e10fc355fa1455545a30734995908" | ||
dependencies: | ||
"@gorhom/portal" "1.0.14" | ||
invariant "^2.2.4" | ||
|
||
"@egjs/hammerjs@^2.0.17": | ||
version "2.0.17" | ||
resolved "https://registry.yarnpkg.com/@egjs/hammerjs/-/hammerjs-2.0.17.tgz#5dc02af75a6a06e4c2db0202cae38c9263895124" | ||
|
@@ -2831,14 +2838,6 @@ | |
resolved "https://registry.yarnpkg.com/@gar/promisify/-/promisify-1.1.3.tgz#555193ab2e3bb3b6adc3d551c9c030d9e860daf6" | ||
integrity sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw== | ||
|
||
"@gorhom/bottom-sheet@^4.6.1": | ||
version "4.6.1" | ||
resolved "https://registry.yarnpkg.com/@gorhom/bottom-sheet/-/bottom-sheet-4.6.1.tgz#e45e2183246e338cf732fe4f8f2c91875b22ddce" | ||
integrity sha512-sXqsYqX1/rAbmCC5fb9o6hwSF3KXriC0EGUGvLlhFvjaEEMBrRKFTNndiluRK1HmpUzazVaYdTm/lLkSiA2ooQ== | ||
dependencies: | ||
"@gorhom/portal" "1.0.14" | ||
invariant "^2.2.4" | ||
|
||
"@gorhom/[email protected]": | ||
version "1.0.14" | ||
resolved "https://registry.yarnpkg.com/@gorhom/portal/-/portal-1.0.14.tgz#1953edb76aaba80fb24021dc774550194a18e111" | ||
|
@@ -4318,6 +4317,11 @@ | |
resolved "https://registry.yarnpkg.com/@types/i18n-js/-/i18n-js-3.8.9.tgz#074d1389539d2db992e6afd7eb379aa02929ef93" | ||
integrity sha512-bSxgya4x5O+x+QhfCGckiDDE+17XGPp1TNBgBA/vfF5EwdiZC70F4cKG5QK2v44+v62oY7/t/InreRhxskulcA== | ||
|
||
"@types/invariant@^2.2.37": | ||
version "2.2.37" | ||
resolved "https://registry.yarnpkg.com/@types/invariant/-/invariant-2.2.37.tgz#1709741e534364d653c87dff22fc76fa94aa7bc0" | ||
integrity sha512-IwpIMieE55oGWiXkQPSBY1nw1nFs6bsKXTFskNY8sdS17K24vyEBRQZEwlRS7ZmXCWnJcQtbxWzly+cODWGs2A== | ||
|
||
"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0", "@types/istanbul-lib-coverage@^2.0.1": | ||
version "2.0.6" | ||
resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz#7739c232a1fee9b4d3ce8985f314c0c6d33549d7" | ||
|