You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
export function isReducedMotion() {
return isWeb()
? isWindowAvailable()
? // @ts-ignore Fallback if `window` is undefined.
!window.matchMedia('(prefers-reduced-motion: no-preference)').matches
: false
: !!(global as localGlobal)._REANIMATED_IS_REDUCED_MOTION;
}
As this change occurs, certain animations may not work properly depending on the user's system accessibility settings. (e.g. gorhom's BottomSheet)
Of course, the part where the problem occurs in BottomSheet is the part in the library that needs to be modified. However, even if you create customized logic yourself, there may be cases where things do not work properly depending on user settings, which may reduce the stability of the service.
For the service I am currently running, accessibility is not very important. I would like you to review the section that opens functions related to accessibility settings so that you can decide on them depending on the usage situation.
If you agree, I have a strong intention to carry out the PR myself.
If you have no plans to open it, I would be very grateful if you could let me know the reason.
I am always learning from watching Logic and grateful to use it. Thank you.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We recently migrated Reanimated third party from V2 to V3. During that process, we confirmed that accessibility-related processing was added.
The logic I found is as follows.
V3: react-native-reanimated/src/reanimated2/PlatformChecker.ts
As this change occurs, certain animations may not work properly depending on the user's system accessibility settings. (e.g. gorhom's BottomSheet)
Of course, the part where the problem occurs in BottomSheet is the part in the library that needs to be modified. However, even if you create customized logic yourself, there may be cases where things do not work properly depending on user settings, which may reduce the stability of the service.
For the service I am currently running, accessibility is not very important. I would like you to review the section that opens functions related to accessibility settings so that you can decide on them depending on the usage situation.
If you agree, I have a strong intention to carry out the PR myself.
If you have no plans to open it, I would be very grateful if you could let me know the reason.
I am always learning from watching Logic and grateful to use it. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions