Skip to content

Conversation

@Latropos
Copy link
Contributor

@Latropos Latropos commented Apr 12, 2024

Summary

In many animations we have two ways of implementing them - we can use withTiming either inside useAnimatedStyle or outside. For simplicity I've decided to name test cases with useAnimatedStyle actively updating shared value as "ACTIVE", and if from useAnimatedStyle we observe it I call test case "PASSIVE". So these test cases are either ACTIVE or PASSIVE from the point of view of the hook useAnimatedStyle

Test plan

@Latropos Latropos changed the title Add more tests Test for two usages of useAnimatedSyle Apr 15, 2024
@Latropos Latropos requested a review from piaskowyk April 15, 2024 09:11
@Latropos Latropos marked this pull request as ready for review April 15, 2024 09:11
@Latropos Latropos changed the title Test for two usages of useAnimatedSyle Test two ways to use sharedValue in useAnimatedSyle Apr 15, 2024
@tomekzaw tomekzaw changed the title Test two ways to use sharedValue in useAnimatedSyle Test two ways to use sharedValue in useAnimatedStyle Apr 17, 2024
@Latropos Latropos requested review from szydlovsky and tjzel April 29, 2024 12:42
Copy link
Contributor

@szydlovsky szydlovsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me - left just a super small cosmetic comment

@Latropos Latropos added this pull request to the merge queue May 6, 2024
Merged via the queue into main with commit 8d2c491 May 6, 2024
@Latropos Latropos deleted the acynk/add_more_tests branch May 6, 2024 10:35
GSTJ referenced this pull request in GSTJ/react-native-magic-modal May 25, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[react-native-reanimated](https://github.com/software-mansion/react-native-reanimated)
| [`~3.10.1` ->
`~3.11.0`](https://renovatebot.com/diffs/npm/react-native-reanimated/3.10.1/3.11.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/react-native-reanimated/3.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/react-native-reanimated/3.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/react-native-reanimated/3.10.1/3.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/react-native-reanimated/3.10.1/3.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>software-mansion/react-native-reanimated
(react-native-reanimated)</summary>

###
[`v3.11.0`](https://github.com/software-mansion/react-native-reanimated/releases/tag/3.11.0)

[Compare
Source](https://github.com/software-mansion/react-native-reanimated/compare/3.10.1...3.11.0)

#### What's Changed

- Fix EXC_BAD_ACCESS crash on iOS in `[REAAnimationsManager
clearSharedTransitionConfigForTag:]` by
[@&#8203;tomekzaw](https://github.com/tomekzaw) in
[https://github.com/software-mansion/react-native-reanimated/pull/5975](https://github.com/software-mansion/react-native-reanimated/pull/5975)
- Fix uncaught exception 'NSUnknownKeyException' on app reload on iOS by
[@&#8203;tomekzaw](https://github.com/tomekzaw) in
[https://github.com/software-mansion/react-native-reanimated/pull/5976](https://github.com/software-mansion/react-native-reanimated/pull/5976)
- Test two ways to use sharedValue in `useAnimatedStyle` by
[@&#8203;Latropos](https://github.com/Latropos) in
[https://github.com/software-mansion/react-native-reanimated/pull/5893](https://github.com/software-mansion/react-native-reanimated/pull/5893)
- docs: fix grammar by [@&#8203;wodin](https://github.com/wodin) in
[https://github.com/software-mansion/react-native-reanimated/pull/5978](https://github.com/software-mansion/react-native-reanimated/pull/5978)
- fix: build issues on visionOS by
[@&#8203;okwasniewski](https://github.com/okwasniewski) in
[https://github.com/software-mansion/react-native-reanimated/pull/5980](https://github.com/software-mansion/react-native-reanimated/pull/5980)

**Full Changelog**:
software-mansion/react-native-reanimated@3.10.0...3.11.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/GSTJ/react-native-magic-modal).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNjguMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4zNjguMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

2 participants