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

feat: registration compat for 0.68/0.69 #1057

Closed
wants to merge 1 commit into from

Conversation

Sunbreak
Copy link
Contributor

Background

Support for Fabric on 0.68/0.69 requires manual registration inside custom RNScreensComponentsRegistry, according to Introducing Fabric to react-native-screens, especially Android base changes

Solution

Backport lottie-react-native to 0.68/0.69 as callstack/react-native-builder-bob#360

Test Plan

Tested on fabric-compat example: https://github.com/Sunbreak/lottie-react-native/tree/compat-example

@matinzd
Copy link
Collaborator

matinzd commented Jul 22, 2023

I don't think this is needed because I don't think it's a good idea to turn on new architecture on 68/69. New architecture support is still experimental and most production apps are not using it.

@Sunbreak
Copy link
Contributor Author

Fine. We could leave the PR open as a reminder

satya164 pushed a commit to callstack/react-native-builder-bob that referenced this pull request Aug 25, 2023
### Summary

`develop mode` condition is inspired by [`react-native-reanimated`
build.gradle](https://github.com/software-mansion/react-native-reanimated/blob/main/android/build.gradle)

It uses the lock version of `react-native` dependency of library when
compiling `example`

The lock version fails the build when there are different versions of
`react-native` in each variant of examples

For example,
https://github.com/Sunbreak/lottie-react-native/tree/compat-example

-
[apps/fabric](https://github.com/Sunbreak/lottie-react-native/tree/compat-example/apps/fabric)
use `react-native@0.71.11`
-
[apps/fabric-compat](https://github.com/Sunbreak/lottie-react-native/tree/compat-example/apps/fabric)
use `react-native@0.69.4`

### Test plan

lottie-react-native/lottie-react-native#1057 is
PR of lottie-react-native for compat with `react-native@0.69.4`
@matinzd
Copy link
Collaborator

matinzd commented Nov 24, 2023

It's not needed since we are not going to support versions lower than 70 anymore.

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