Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Current state:
Issues:
Milestones:
Some documentation links:
https://reactnative.dev/blog/2022/06/16/resources-migrating-your-react-native-library-to-the-new-architecture
https://reactnative.dev/docs/next/new-architecture-intro
https://github.com/react-native-community/RNNewArchitectureLibraries
https://github.com/reactwg/react-native-new-architecture/discussions
3rd party libraries - updates and requests reactwg/react-native-new-architecture#6
mateusz1913/react-native-avoid-softinput@4e7d974
https://github.com/callstack/react-native-pager-view/blob/master/src/PagerViewNativeComponent.ts
https://github.com/facebook/react-native/tree/HEAD/packages/react-native-codegen
Use dummy typescript spec for map view
Generate component using codegen
Build example with fabric
~??? RCTMBXMapView.mm doesn't have RCT_NEW_ARCH_ENABLED defined.
DRCT_NEW_ARCH_ENABLED
.-DRCT_NEW_ARCH_ENABLED
also seeinstall_modules_dependencies
infacebook/react-native@82e9c6a#diff-adcf572f001c2b710d14f409c14763f1a50b08369b3034548f1602685d21f67f~ solved by install_modules_dependencies
implement simple mapbox map view component implented in Swift
send some message to native component
call callback from native component
handle props update in native component
display existing MapView component using Fabric.
Things are a bit compilicated as we use swift. And fabric is C++. While Objective-C has great C++ interop via objective-C++, swift C++ interop is still in progress . Swift has great interop with pure objectve-C classes and protocols, but it doesn't have interop with objective-c classes which has c++ members base of fabric component: RCTViewComponentView. Alternative would be implementing RCTComponentViewProtocol directly, but since it's operates on C++ object, it's problematic to porvide swift implementations
Current state:
Issues: