Yoga Podspec: Export YGNode and YGStyle headers #997
Reference in New Issue
Block a user
No description provided.
Delete Branch "add-fabric-dependencies"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request adds
YGNode.h
andYGStyle.h
to the headers exported by Yoga's podspec. They are required by the new Fabric architecture of React Native.The modulemap and its umbrella header automatically generated by Cocoapods adds all exported headers to the
modulemap
. Having YGNode and YGStyle exported through here has problems, because they are only available in environments that have C++ available, and will produce errors otherwise.This pull request fences off the contents of those headers in an
#ifdef __cplusplus
block, so they will not cause errors when imported into environments where C++ isn't available.I had considered adding a custom modulemap to the podspec as part of this pull request, but this way seems the least "invasive", and this way you are able to add and remove exported headers in the podspec without needing to worry about updating the umbrella header at the same time.
@mdvacca has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@mdvacca merged this pull request in facebook/yoga@9b96a5362a.
Pull request closed