Skip to content

Conversation

@kkafar
Copy link
Contributor

@kkafar kkafar commented Dec 19, 2024

Summary

Hey, I'm adding support for RN 0.77 in react-native-screens software-mansion/react-native-screens#2581 and I stumbled on issue with RNSAC.

Basically BaseViewManagerInterface has been removed from react-native
and view manager interfaces & delegates shipped for old arch purposes are no longer valid with 0.77. The PR claims
that this change should be backward compatible with older RN versions for old architecture.

I've included the patch I'm using in react-native-screens for react-native-safe-area-context to make my test project build.
Please note that some more changes might be required for full compatibility with 0.77.

Test Plan

I'm using this patch in react-native-screens, but admit that I haven't tested it in your repository.

Copy link
Collaborator

@janicduplessis janicduplessis left a comment

Choose a reason for hiding this comment

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

Thanks!

@janicduplessis janicduplessis merged commit 0d748bf into AppAndFlow:main Dec 19, 2024
2 checks passed
@vonovak
Copy link
Contributor

vonovak commented Jan 7, 2025

hello @janicduplessis do you plan to release this soon? RN 77 stable is coming soon and would be great to have this package ready for it.
Thank you!

@janicduplessis
Copy link
Collaborator

@vonovak Done!

kkafar added a commit to software-mansion/react-native-screens that referenced this pull request Jan 10, 2025
## Description

Adding support for react-native 0.77. 
After this PR is merged the library will support 0.74+ Paper and 0.77
Fabric.

Please note, that I haven't notice any not-handled breaking changes -
the library should work with versions down to 0.72 on old architecture
and at least down to 0.76 on Fabric, however we won't extend issue
resolving to these versions.

## Changes

* adjusted example apps on both architectures with changes from upgrade
helper,
* bumped `safe-area-context` to 5.0.0 (it comes with support for Paper
0.74+) in examples (not lib!),
* patched `safe-area-context`:
* AppAndFlow/react-native-safe-area-context#566
* Removed patches for and dependencies on reanimated and gesture-handler
- awaiting for support, see below 👇🏻 (comment) <-- **this must be
restored for e2e to work!!!**
* Reanimated uses [the
patch](software-mansion/react-native-reanimated#6768 (comment))
* Gesture handler has been set to [current
main](https://github.com/software-mansion/react-native-gesture-handler/tree/c3ced78e1608e63b5b3a9bca0c66cc11f4029605)



## Test code and steps to reproduce

When doing some quick checks I haven't noticed any obvious regressions.

## Checklist

- [ ] Ensured that CI passes

---------

Co-authored-by: Marc Rousavy <[email protected]>
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.

3 participants