Make TurboModule system support int/float args/returns#36628
Conversation
|
This pull request was exported from Phabricator. Differential Revision: D44000389 |
Base commit: 4e0dfed |
|
This pull request was exported from Phabricator. Differential Revision: D44000389 |
eedc910 to
e1aa57f
Compare
e1aa57f to
a8323d5
Compare
|
This pull request was exported from Phabricator. Differential Revision: D44000389 |
Pranav-yadav
left a comment
There was a problem hiding this comment.
added comments for few nits :)
There was a problem hiding this comment.
Wouldn't it be nice if we have deprecation statement here as well ?
Just being curious since this is marked public
There was a problem hiding this comment.
| * Interface to allow for creating and retrieving NativeModules. Why is this this class prefixed | |
| * Interface to allow for creating and retrieving NativeModules. Why is this class prefixed |
nit: extra this :)
There was a problem hiding this comment.
| // jsRepresentation is also cached by by name by the TurboModuleManager | |
| // jsRepresentation is also cached by name by the TurboModuleManager |
nit: extra 'by' :)
|
This pull request was exported from Phabricator. Differential Revision: D44000389 |
a8323d5 to
410a790
Compare
|
This pull request was exported from Phabricator. Differential Revision: D44000389 |
410a790 to
e562d20
Compare
|
This pull request was exported from Phabricator. Differential Revision: D44000389 |
e562d20 to
4ffe0a7
Compare
|
This pull request was exported from Phabricator. Differential Revision: D44000389 |
4ffe0a7 to
a343c2a
Compare
|
This pull request was exported from Phabricator. Differential Revision: D44000389 |
a343c2a to
4873aab
Compare
|
This pull request was exported from Phabricator. Differential Revision: D44000389 |
4873aab to
d2e8bb1
Compare
|
This pull request was exported from Phabricator. Differential Revision: D44000389 |
d2e8bb1 to
6a6c7c3
Compare
6a6c7c3 to
cdf8a6d
Compare
|
This pull request was exported from Phabricator. Differential Revision: D44000389 |
Summary: In Bridgeless mode, With the TurboModule interop layer, the TurboModule system will need to customize the nativeModuleProxy global. This customization would be much easier if the nativeModuleProxy global were installed by the TurboModule system (and not the Bridgeless core). So, this diff moves nativeModuleProxy installation into the TurboModule system. Changelog: [Internal] Differential Revision: https://internalfb.com/D43993197 fbshipit-source-id: 898851eff800f5151bb09c6e40a8e2f5cdeb7ba1
Summary: ## Context Previously, jsRepresentation would only cache the **HostFunctions** returned from TurboModule::createHostFunction(). ## Changes This diff replaces TurboModule::createHostFunction() with TurboModule::create(). Now, jsRepresentation will cache **all** the **properties** returned from TurboModule::create(). ## Motivation For interop modules, constants will be exported as properties on the TurboModule HostObject. This diff allows those constants (which are non HostFunctions) to be cached. Changelog: [Internal] Differential Revision: https://internalfb.com/D44253229 fbshipit-source-id: b32ff9c108db414563dd4c81221af161029db965
Summary: Pull Request resolved: facebook#36628 The legacy NativeModule system supports integer and float in NativeModule method arguments and returns. This diff extends the TurboModule system for the same functionality. T his is necessary because the TurboModule system will now need to dispatch method calls to legacy NativeModules. NOTE: We can't actually test these changes until we run interop modules. Changelog: [Internal] Reviewed By: javache Differential Revision: D44000389 fbshipit-source-id: 5b2825164609549cc27f2ed04db0638d93712893
|
This pull request was exported from Phabricator. Differential Revision: D44000389 |
cdf8a6d to
449953a
Compare
|
This pull request has been merged in cb07358. |
Summary:
The legacy NativeModule system supports integer and float in NativeModule method arguments and returns. This diff extends the TurboModule system for the same functionality. T
his is necessary because the TurboModule system will now need to dispatch method calls to legacy NativeModules.
NOTE: We can't actually test these changes until we run interop modules.
Changelog: [Internal]
Reviewed By: javache
Differential Revision: D44000389