Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for React Native 0.72 #4253

Merged
merged 19 commits into from
Apr 7, 2023
Merged

Add support for React Native 0.72 #4253

merged 19 commits into from
Apr 7, 2023

Conversation

tomekzaw
Copy link
Member

@tomekzaw tomekzaw commented Mar 21, 2023

Summary

This PR adds support for React Native 0.72.0 as well as bumps React Native version in Example and FabricExample to 0.72.0-rc.1. See https://react-native-community.github.io/upgrade-helper/?from=0.71.3&to=0.72.0-rc.1 for changes.

TODO

  • bump version in project root
  • bump version in Example
  • bump version in FabricExample
  • update metro-inspector-proxy patch
  • change Node version on CI
  • add react-native/ReactCommon/react/renderer/components/ to .gitignore? fixed in RN
  • check if FBReactNativeSpec is still required on older versions of RN
  • fix ESLint errors in Example app
  • remove -DRN_FABRIC_ENABLED from xcproject it's ok

Checklist

  • check all configurations (Example/FabricExample, Android/iOS)
    • iOS / Paper / debug ✅
    • iOS / Paper / release ✅
    • Android / Paper / debug ✅
    • Andorid / Paper / release ✅
    • iOS / Fabric / debug ✅
    • iOS / Fabric / release ✅
    • Android / Fabric / debug ✅
    • Android / Fabric / release ✅
  • check debugging worklet runtime via Chrome DevTools
  • check debugging in Android Studio
  • check production builds

Test plan

tomekzaw added a commit that referenced this pull request Mar 23, 2023
<!-- Thanks for submitting a pull request! We appreciate you spending
the time to work on these changes. Please follow the template so that
the reviewers can easily understand what the code changes affect. -->

## Summary

Pre-requisite for #4253.

## Test plan

<!-- Provide a minimal but complete code snippet that can be used to
test out this change along with instructions how to run it and a
description of the expected behavior. -->
@tomekzaw tomekzaw marked this pull request as ready for review April 5, 2023 17:17
@tomekzaw tomekzaw requested a review from piaskowyk April 5, 2023 17:17
@tomekzaw tomekzaw added this pull request to the merge queue Apr 7, 2023
Merged via the queue into main with commit a9c9fd9 Apr 7, 2023
20 checks passed
@tomekzaw tomekzaw deleted the @tomekzaw/support-0.72 branch April 7, 2023 12:22
fluiddot pushed a commit to wordpress-mobile/react-native-reanimated that referenced this pull request Jun 5, 2023
…nsion#4259)

<!-- Thanks for submitting a pull request! We appreciate you spending
the time to work on these changes. Please follow the template so that
the reviewers can easily understand what the code changes affect. -->

## Summary

Pre-requisite for software-mansion#4253.

## Test plan

<!-- Provide a minimal but complete code snippet that can be used to
test out this change along with instructions how to run it and a
description of the expected behavior. -->
fluiddot pushed a commit to wordpress-mobile/react-native-reanimated that referenced this pull request Jun 5, 2023
## Summary

This PR adds support for React Native 0.72.0 as well as bumps React
Native version in Example and FabricExample to 0.72.0-rc.1. See
https://react-native-community.github.io/upgrade-helper/?from=0.71.3&to=0.72.0-rc.1
for changes.

### TODO

- [x] bump version in project root
- [x] bump version in Example
- [x] bump version in FabricExample
- [x] update metro-inspector-proxy patch
- [x] change Node version on CI
- [x] ~~add `react-native/ReactCommon/react/renderer/components/` to
.gitignore?~~ fixed in RN
- [x] check if `FBReactNativeSpec` is still required on older versions
of RN
- [x] fix ESLint errors in Example app
- [x] ~~remove `-DRN_FABRIC_ENABLED` from xcproject~~ it's ok

### Checklist

- [x] check all configurations (Example/FabricExample, Android/iOS)
    - iOS / Paper / debug ✅ 
    - iOS / Paper / release ✅ 
    - Android / Paper / debug ✅ 
    - Andorid / Paper / release ✅ 
    - iOS / Fabric / debug ✅ 
    - iOS / Fabric / release ✅ 
    - Android / Fabric / debug ✅
    - Android / Fabric / release ✅
- [x] check debugging worklet runtime via Chrome DevTools
- [x] check debugging in Android Studio
- [x] check production builds

## Test plan
Comment on lines +88 to +89
if fabric_enabled && reanimated_major_version == 3 && react_native_minor_version < 72
raise "[react-native-reanimated] Reanimated " + reanimated_version + " supports the New Architecture only on the latest minor release of React Native. Please upgrade to React Native 0.72.0+ or downgrade to an older version of Reanimated v3"
Copy link
Contributor

Choose a reason for hiding this comment

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

Here we increase minimum RN version

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.

None yet

3 participants