Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reanimated Reduced motion #128

Closed
janroures opened this issue Oct 1, 2024 · 5 comments
Closed

Reanimated Reduced motion #128

janroures opened this issue Oct 1, 2024 · 5 comments

Comments

@janroures
Copy link

Hello, thanks for this amazing lib. I was wondering how to customize the reduced motion setting in reanimated. Animations won't work if we can't set reduceMotion: ReduceMotion.Never

@janroures
Copy link
Author

would be nice to be able to customize reanimated animation options.

Thank you 🙏

@gunnartorfis
Copy link
Owner

Hey @janroures
I'm not too deep in reduceMotion - would we have to read the reduce motion on the device settings if we'd want to support this within the lib, and apply it to our animations?

Would you be open to create a PR?

@janroures
Copy link
Author

Hi @gunnartorfis thanks for your response,

No, what I mean is that it would be nice to be able to assign the Reduced Motion values that reanimated already has built-in as a global or local prop of the toast, and have it modify the options of the withTiming, withSpring animations, etc. of the toast.

Something like
toast.success("Hello, world", { reduceMotion: ReduceMotion.Never }
or
<Toaster theme="dark" toastOptions={{ reduceMotion: ReduceMotion.Never }}/>

this is from reanimated:
Captura de pantalla 2024-10-04 a les 19 22 33
Captura de pantalla 2024-10-04 a les 19 29 16

Hope I explained myself well!!
Thank you

@hyoban
Copy link
Collaborator

hyoban commented Oct 5, 2024

I think you can already do this with ReduceMotionConfig

@janroures
Copy link
Author

Didn't know about this. Thank you!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants