Add support for the new architecture #732
Open
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.
PR adding New Architecture support to the library 🎉
We at Software Mansion have been working on improving support for the new architecture for quite a while now. If you need help with anything related to New Architecture, like:
or you just want to ask any questions, hit us up on projects@swmansion.com
This PR:
FabricExample
app with the new arch enabled by defaultgetConstants()
must be returning object literal on iOS and type safety is enforced on Android), I've moved constants exported by the native module intoconstants
object, i.e. instead of returning{ constant1: 'value1', constant2: 'value2' }
the native side now returns{ constants: { constant1: 'value1', constant2: 'value2' } }
The changes in this PR apply to iOS and Android codebase, I've tried to make sure that Windows is unaffected but I cannot test it.