-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement prefersReducedMotion on native (#4039)
* implement prefersReducedMotion on native * just take the function from the reanimated source * use patch-package to export internal function
- Loading branch information
Showing
2 changed files
with
32 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
diff --git a/node_modules/react-native-reanimated/lib/module/reanimated2/index.js b/node_modules/react-native-reanimated/lib/module/reanimated2/index.js | ||
index 91e49f4..c10d3fc 100644 | ||
--- a/node_modules/react-native-reanimated/lib/module/reanimated2/index.js | ||
+++ b/node_modules/react-native-reanimated/lib/module/reanimated2/index.js | ||
@@ -45,4 +45,5 @@ export { getUseOfValueInStyleWarning } from './pluginUtils'; | ||
export { withReanimatedTimer, advanceAnimationByTime, advanceAnimationByFrame, setUpTests, getAnimatedStyle } from './jestUtils'; | ||
export { LayoutAnimationConfig } from './component/LayoutAnimationConfig'; | ||
export { startMapper, stopMapper } from './mappers'; | ||
+export { isReducedMotion } from './PlatformChecker'; | ||
//# sourceMappingURL=index.js.map | ||
\ No newline at end of file | ||
diff --git a/node_modules/react-native-reanimated/lib/typescript/reanimated2/index.d.ts b/node_modules/react-native-reanimated/lib/typescript/reanimated2/index.d.ts | ||
index 96bd913..ad63a09 100644 | ||
--- a/node_modules/react-native-reanimated/lib/typescript/reanimated2/index.d.ts | ||
+++ b/node_modules/react-native-reanimated/lib/typescript/reanimated2/index.d.ts | ||
@@ -33,3 +33,4 @@ export type { Adaptable, AdaptTransforms, AnimateProps, AnimatedProps, AnimatedT | ||
export type { AnimatedScrollViewProps } from './component/ScrollView'; | ||
export type { FlatListPropsWithLayout } from './component/FlatList'; | ||
export { startMapper, stopMapper } from './mappers'; | ||
+export { isReducedMotion } from './PlatformChecker'; | ||
diff --git a/node_modules/react-native-reanimated/src/reanimated2/index.ts b/node_modules/react-native-reanimated/src/reanimated2/index.ts | ||
index 096dc05..38fc01d 100644 | ||
--- a/node_modules/react-native-reanimated/src/reanimated2/index.ts | ||
+++ b/node_modules/react-native-reanimated/src/reanimated2/index.ts | ||
@@ -271,3 +271,4 @@ export type { | ||
export type { AnimatedScrollViewProps } from './component/ScrollView'; | ||
export type { FlatListPropsWithLayout } from './component/FlatList'; | ||
export { startMapper, stopMapper } from './mappers'; | ||
+export { isReducedMotion } from './PlatformChecker'; | ||
\ No newline at end of file |
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