Phillip Pan
|
9fc3fc83ac
|
introduce RCTViewUtils
Summary:
Changelog: [Internal]
in this diff, i convert the following method to a C function.
https://www.internalfb.com/code/fbsource/[c58818169205f1e0fa816968efdb4c3fac8333e9]/xplat/js/react-native-github/React/Views/RCTView.h?lines=43
besides for testing demonstration purposes later in the stack, C functions are a superior choice to static class methods because they incur less binary size cost (see section 4.3 of https://swolchok.github.io/objcperf/ if you're curious, and https://fb.workplace.com/groups/aexpixfn/posts/1909150855887748 for the impact of a conversion)
Reviewed By: RSNara
Differential Revision: D31949241
fbshipit-source-id: dd40871d48f1de168d360168c4dd60015145d7e3
|
2021-11-09 20:42:13 -08:00 |
|