Skip to content

Conversation

@skusnierz
Copy link
Contributor

@skusnierz skusnierz commented Aug 5, 2025

Summary

This PR adds a compatibility.json file, which stores the supported RN versions used during CI builds and on the Compatibility Table documentation page.

Test plan

image

MatiPl01 and others added 3 commits August 6, 2025 09:04
## Summary

This issue was introduced in the #7784 PR and was caused by the
`getDouble()` call on the `folly::dynamic` value. I assumed that all
values that come from JS are double (since this is how JS represents all
numbers) but, in fact, the value was stored as the 64-bit integer in the
`folly::dynamic` and the `.getDouble()` call caused crashes.

To fix the issue, I decided to use the safer method `.asInt`, which will
convert the number to the integer type (if it is not already an int)
instead of throwing error. I also changed the `double` constructor to
the `int64_t` constructor as the integer type is more correct than the
`double` type.

## Example recording

### Before


https://github.com/user-attachments/assets/6b5dc444-7049-4687-a36d-55dd7c9f33ac

### After


https://github.com/user-attachments/assets/d9c22957-ba62-41ab-897f-8e31ebac90c0


## Test plan

Open the `Transitions -> Test Examples -> Playground` example and press
on the **Change state** button a few times in a row.
@skusnierz skusnierz added the Check compatibility Trigger a time-consuming compatibility check action label Aug 7, 2025
@skusnierz skusnierz requested a review from tjzel August 11, 2025 14:34
Copy link
Collaborator

@tjzel tjzel left a comment

Choose a reason for hiding this comment

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

Clean up stuff and we gucci 👌

@skusnierz skusnierz force-pushed the @skusnierz/common-compatibility-json branch from 6e00ba4 to f944f6b Compare August 12, 2025 12:17
@skusnierz skusnierz requested a review from tjzel August 12, 2025 12:20
Copy link
Collaborator

@tjzel tjzel left a comment

Choose a reason for hiding this comment

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

Make sure to clean that up and we should be gucci

Image

@skusnierz skusnierz added this pull request to the merge queue Aug 13, 2025
Merged via the queue into main with commit 2323bc1 Aug 13, 2025
31 of 33 checks passed
@skusnierz skusnierz deleted the @skusnierz/common-compatibility-json branch August 13, 2025 14:02
MatiPl01 added a commit that referenced this pull request Aug 13, 2025
## Summary
This PR adds a `compatibility.json` file, which stores the supported RN
versions used during CI builds and on the `Compatibility Table`
documentation page.

## Test plan
<img width="870" height="817" alt="image"
src="https://github.com/user-attachments/assets/7994b410-b055-47ad-b303-9467066e40c8"
/>

---------

Co-authored-by: Mateusz Łopaciński <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Aug 20, 2025
## Summary
This PR changes the way compatible versions of React Native with
Reanimated are checked.
fyi: In the previous PR
(#8004),
I added a single file where we store compatible versions of React Native
with Reanimated.

## Test plan
Build `fabric example` with different version of Reanimated and RN.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Check compatibility Trigger a time-consuming compatibility check action lib: Reanimated

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants