Skip to content

Comments

Replace deprecated react-native deep imports in RNMBXMapView codegen#4133

Closed
mariusud wants to merge 1 commit intornmapbox:mainfrom
mariusud:mariusud/fix-deep-imports
Closed

Replace deprecated react-native deep imports in RNMBXMapView codegen#4133
mariusud wants to merge 1 commit intornmapbox:mainfrom
mariusud:mariusud/fix-deep-imports

Conversation

@mariusud
Copy link
Contributor

@mariusud mariusud commented Jan 9, 2026

Description

Fixes ReactNativeJS: Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: maps/src/specs/RNMBXMapViewNativeComponent.ts 2:0

Also, use CodegenTypes like here https://github.com/facebook/react-native/blob/0e175ce5b6c80a21237f5cd0f20c9876fa975935/packages/react-native/types/__typetests__/fabric-component-sample.ts#L11

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

@mariusud mariusud temporarily deployed to CI with Mapbox Tokens January 9, 2026 08:34 — with GitHub Actions Inactive
@mariusud mariusud temporarily deployed to CI with Mapbox Tokens January 9, 2026 08:34 — with GitHub Actions Inactive
@mariusud mariusud temporarily deployed to CI with Mapbox Tokens January 9, 2026 08:34 — with GitHub Actions Inactive
@mfazekas
Copy link
Contributor

@see #3992

@mfazekas
Copy link
Contributor

Closing this as #3992 is a more complete fix. I'm not sure we're going to merge this at this point as this requires rn 0.80

@mfazekas mfazekas closed this Feb 21, 2026
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