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