Define JSI bridging function for ShadowNode::Shared
Summary: Changelog: [internal]
This defines a new bridging method to convert ShadowNode::Shared from and to JS. This has some benefits over the existing shadowNodeFromValue and valueFromShadowNode functions:
- It's more convenient, as we can just use
ShadowNode::Sharedin classes implementing the codegen, and the runtime will do the conversion automatically. - It's safer, as it checks for nullability and throws JS exceptions except of having segmentation faults down the line.
Differential Revision: D75597542
This pull request was exported from Phabricator. Differential Revision: D75597542
This pull request was exported from Phabricator. Differential Revision: D75597542
This pull request was exported from Phabricator. Differential Revision: D75597542
This pull request was exported from Phabricator. Differential Revision: D75597542
This pull request was exported from Phabricator. Differential Revision: D75597542
This pull request was exported from Phabricator. Differential Revision: D75597542
This pull request was exported from Phabricator. Differential Revision: D75597542
This pull request has been merged in facebook/react-native@9c2148920c1c679f3ece295bc4614e9af7854a63.
This pull request was successfully merged by @rubennorte in 9c2148920c1c679f3ece295bc4614e9af7854a63
When will my fix make it into a release? | How to file a pick request?