3.15.0
What's Changed
Features
- Add
ReducedMotionConfig
component by @piaskowyk in #6164 - [Web LA] Add
EntryExitTransition
by @m-bert in #6232 - Name every worklet function by @tjzel in #6163
- Workletize top-level functions in a file with 'worklet' directive by @tjzel in #5554
- Workletizable Context Objects by @tjzel in #6284
- [Web LA] Add
CurvedTransition
by @m-bert in #6239 - Workletizable Classes by @tjzel in #6230
- Expose
worklets
as prefab by @tomekzaw in #6372 - Support React Native 0.75 by @tomekzaw in #6185
Fixes
- Fix useSharedValue type definition in docs by @MatiPl01 in #6260
- [Web] Fix missing RNRenderer export (#6265) by @lkinasiewicz in #6266
- Prevent disabling cleanup in progress transitions on iOS by @bartlomiejbloniarz in #6270
mansion/react-native-reanimated/pull/6282 - [Web] Fix animations on Chromium 73 and older (#6269) by @lkinasiewicz in #6271
- Fix Reduced Motion example by @piaskowyk in #6288
- fix: class factory included in sort by @tjzel in #6314
- [Web LA] Fix
easing
by @m-bert in #6304 - [Web LA] Start
exiting
after position fix by @m-bert in #6308 - fix: Plugin precommit script by @tjzel in #6328
- Fix
Remove
mutation parsing in Layout Animations by @bartlomiejbloniarz in #6286 - Bugfix - don't require render in every test by @Latropos in #6318
- Fix spotless config by @tomekzaw in #6349
- fix: proper types for userAgent and vendor by @WoLewicki in #6361
- Fix handling UTF-8 object keys by @coado in #6373
- Fix pendulum example to not crash on empty mass input field by @latekvo in #6379
- Fix next js build CI by @szydlovsky in #6381
- fix: Light mode colors in the make mutable example in docs by @MatiPl01 in #6375
Improvements
- Put back the README.md file in the npm package by @piaskowyk in #6256
- [Web LA] Fill in missing keyframes in default animations by @m-bert in #6259
- [Web LA] Add
withInitialValues
modifier by @m-bert in #6254 - Deprecate
combineTransition
by @piaskowyk in #6161 - chore: Reanimated package.json metadata tweaks by @Simek in #6300
- Optimize Shadow Tree cloning by @bartlomiejbloniarz in #6214
- Remove
ReanimatedHiddenHeaders
,LoggerInterface
andSpeedChecker
by @tomekzaw in #6363 - Modify reanimated props updates by @bartlomiejbloniarz in #6330
Docs changes
- fix: docs: Access before initialization on withSpring and withTiming by @patrycjakalinska in https://github.com/software-
- Extend plugin's documentation by @tjzel in #6227
- docs: Add Worklets page by @kacperkapusciak in #6257
- docs: Replace HireUsSection with
@swmansion/t-rex-ui
component by @patrycjakalinska in #6274 - Add
ReduceMotionConfig
docs by @piaskowyk in #6165 - docs: Rewrite getRelativeCoords documentation page by @patrycjakalinska in #6249
- update layout transitions docs by @Bayramito in #6275
- docs: Rewrite Keyframe Animations documentation page by @patrycjakalinska in #6181
- Fix link to docs by @piaskowyk in #6303
- docs: Add WorkletContextObjects and WorkletClasses by @tjzel in #6309
- docs: Rewrite dispatchCommand page by @patrycjakalinska in #6296
- docs: Recenter slider thumb by @patrycjakalinska in #6313
- Add list itemLayoutAnimation documentation page and example by @MatiPl01 in #6279
- docs: Rewrite Layout Transition documentation page by @patrycjakalinska in #6144
- docs: Add keyExtractor remark to itemLayoutAnimation documentation by @MatiPl01 in https://github.com/software-mansion/
- docs: Rewrite interpolateColor page by @patrycjakalinska in #6332
- docs: update interpolate value argument description by @kacperkapusciak in #6347
- docs: add info about prebuild to installation steps by @kacperkapusciak in #6340
- docs: fix broken link in reanimated babel plugin docs by @kacperkapusciak in #6355
- docs: makeMutable documentation and examples by @MatiPl01 in #6261
- docs: Rewrite useHandler page by @patrycjakalinska in #6345
- docs: add disclaimer about ready-to-use packages in Reanimated Cookbook by @kacperkapusciak in #6182
Internal changes
- Improve
PerformanceMonitor
's functionality by @latekvo in #6241 - Extract async code to separate classes by @Latropos in #6258
- [reJest] waitForAnimationUpdates by @piaskowyk in #6236
- [reJest] Use
waitForAnimationUpdates
instead ofwait
by @piaskowyk in #6237 - Introduce Import buttons to run tests more easily by @Latropos in #6216
- Fix fading snapshot by @Latropos in #6273
- [reJest] Fixes problem with opacity comparation by @piaskowyk in #6233
- refactor: Improve UX of runtime tests menu by @tjzel in #6283
- Improve formatting of snapnshot mismatch comparison by @Latropos in #6272
- Mock window dimensions by @Latropos in #6235
- Remove header to fix broken tests on android by @Latropos in #6289
- Fix function names by @Latropos in #6290
- Prefer
waitForAnimationUpdates
overwait
by @Latropos in #6291 - Rename ReJest main folder by @Latropos in #6292
- Introduce file structure to tests by @Latropos in #6293
- Use seed in randomised tests by @Latropos in #6287
- fix: tests not included by default by @tjzel in #6306
- refactor: split makeMutable to web and native implementations by @tjzel in #6307
- chore: Add verbosity to precommit by @tjzel in #6336
- Bring back useFrameCallback cleanup by @szydlovsky in #6323
- refactor: Untangle types file dependencies by @tjzel in #6319
react-native-reanimated/pull/6326 - refactor: Split cpp code base by @tjzel in #6329
- refactor: Split cmake and podspec for worklets by @tjzel in #6334
- Extract summary & logging from TestRunner. by @Latropos in #6297
- feat: Move commonjs exports down for worklet files by @tjzel in #6316
- Unify snapshots comparison by @Latropos in #6295
- Extract
valueRegistry
fromTestRunner
by @Latropos in #6317 - Unify nullable comparison by @Latropos in #6344
- Test Layout Transition with size change by @Latropos in #6178
- Implement toThrow by @Latropos in #6267
- Print colors in tests π¨ by @Latropos in #6327
- Extract
AnimationUpdatesRecorder
fromTestRunner
by @Latropos in #6342 - Extract
mockWindowDimensions
fromTestRunner
by @Latropos in #6343 - Remove fontawesome dependency from example app by @szarbartosz in #6184
New Contributors
@Bayramito, @Simek, @szarbartosz, @coado
Full Changelog: 3.14.0...3.15.0