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(#162): fabric support #221

Conversation

mateusz1913
Copy link
Contributor

Overview

closes #162

👋 this PR introduces Fabric support for MaskedView from RN >= 0.71

List of changes:

  • add JS Flow spec
  • make android viewmanager to conform to codegen-ed specs
  • make android viewmanager extend ReactViewManager instead of ViewGroupManager (closes Cannot use pointerEvents property with MaskedView on Android #218)
  • add codegen-ed spec to make viewmanager work also in old arch
  • use install_module_dependencies in the podspec to install deps on both new and old architectures
  • add subclass of RCTViewComponentView
  • use fabric implementation when RCT_NEW_ARCH_ENABLED flag is true
  • set RN peerDependency to be version >= 0.71

Additionally, this PR upgrades RNTA to v3 & RN to v0.73 to make it possible to test the lib when new arch is enabled

Test Plan

  1. Run yarn in the example directory
  2. Test the lib on Android old arch
  • Set the newArchEnabled=false in example/android/gradle.properties
  • Run the app on Android
  1. Test the lib on Android new arch
  • Run the ./gradlew clean in example/android
  • Set the newArchEnabled=true in example/android/gradle.properties
  • Run the app on Android
  1. Test the lib on iOS old arch
  • Install Pods (npx pod-install)
  • Run the app on iOS
  1. Test the lib on iOS new arch
  • Clean the build in XCode
  • Install Pods with RCT_NEW_ARCH_ENABLED flag (RCT_NEW_ARCH_ENABLED=1 npx pod-install)
  • Run the app on iOS

- add JS Flow spec
- make android viewmanager to conform to codegen-ed specs
- make android viewmanager extend ReactViewManager instead of ViewGroupManager
- add codegen-ed spec to make viewmanager work also in old arch
- use install_module_dependencies in the podspec to install deps on both new and old architectures
- add subclass of RCTViewComponentView
- use fabric implementation when RCT_NEW_ARCH_ENABLED flag is true
- set RN peerDependency to be version >= 0.71
@brentvatne brentvatne merged commit b5dc9d0 into react-native-masked-view:master Apr 1, 2024
brentvatne added a commit that referenced this pull request Apr 1, 2024
brentvatne added a commit that referenced this pull request Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants