Releases: infiniteluke/react-reduce-motion
Fix "main" field path in package.json
Reported in #1, this bug caused a variety of issues with webpack and eslint. Should be working now!
Fix web default
Web was passing the entire matchMedia
return to the default state. This fixes that by passing the matches
property as the default.
Better default experience
The web react hook was defaulting to false
in the initial release. This was not necessary. The default will now be the users` preference. If that preference changes, the state will be then update.
NOTE: Because retrieving the user's reduce motion preference is "effectual" in react native (requires resolving a promise) the default false
will remain for the native hook. That is a slight difference between the two implementations.
With this release, I feel comfortable encouraging people to use this package. So no more pre-release flag!
Spelling is hard
Don't use case-insensitive find and replace all, friends! This release fixes the web package's media query name 🤦🏻♂️
Initial Release
Now that the package is reasonably tested, time for an initial release! 🎉