Skip to content

Conversation

@mfazekas
Copy link
Contributor

Since @rnmapbox/maps 10.3.0 only supports React Native's new architecture, this removes all old architecture related code from Android:

  • Delete android/src/main/old-arch directory with generated specs
  • Remove isNewArchitectureEnabled() checks from build.gradle
  • Remove IS_NEW_ARCHITECTURE_ENABLED BuildConfig field
  • Always apply com.facebook.react plugin (required for new arch)
  • Simplify ViewTagResolver to always use FABRIC UIManager
  • Remove old arch event emission fallback in RNMBXLocationModule
  • Update RNMBXPackage to always use isTurboModule=true for TurboModules
  • Delete unused EventEmitter.java (was only used for old arch events)
  • Delete scripts/codegen-old-arch.js and remove from autogenerate.mjs
  • Update CONTRIBUTING.md to remove old-arch references

The new architecture codegen by React Native's Gradle plugin now generates the required specs during build.

Description

Fixes #

Added your feature that allows ...

Checklist

  • I've read CONTRIBUTING.md
  • I updated the doc/other generated code with running yarn generate in the root folder
  • I have tested the new feature on /example app.
    • In V11 mode/ios
    • In New Architecture mode/ios
    • In V11 mode/android
    • In New Architecture mode/android
  • I added/updated a sample - if a new feature was implemented (/example)

Screenshot OR Video

Component to reproduce the issue you're fixing

Since @rnmapbox/maps 10.3.0 only supports React Native's new architecture,
this removes all old architecture related code from Android:

- Delete android/src/main/old-arch directory with generated specs
- Remove isNewArchitectureEnabled() checks from build.gradle
- Remove IS_NEW_ARCHITECTURE_ENABLED BuildConfig field
- Always apply com.facebook.react plugin (required for new arch)
- Simplify ViewTagResolver to always use FABRIC UIManager
- Remove old arch event emission fallback in RNMBXLocationModule
- Update RNMBXPackage to always use isTurboModule=true for TurboModules
- Delete unused EventEmitter.java (was only used for old arch events)
- Delete scripts/codegen-old-arch.js and remove from autogenerate.mjs
- Update CONTRIBUTING.md to remove old-arch references

The new architecture codegen by React Native's Gradle plugin now generates
the required specs during build.
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