react-native/ReactCommon/fabric
Valentin Shergin 957ef606b9 Adding `Wrapper` suffix to `EventHandler` and `EventHandler` type names
Summary:
It's maybe not so important/crucial, but this thing bothers me a lot.
We use raw opaque `EventTarget`, `InstanceHandle` and `EventHandler` pointers in application layer quite a lot and we don't have any kind of type-safety here. I believe all those opaque types should be represented as named scalar types which compiler at least can differentiate at compile time.
So I propose introducing named aliases for them which will point to particular empty `struct`s. This will allow us to tag types properly in all functions and methods and ensure that we pass right values as right arguments.
Again, they are *just aliases*, which are effectively still `void *`, no any additional logic or names are involved.

Unfortunately, those nice type names are already taken by `JSIFabricUIManager` local anonymous namespace (even if they are inside anonymous namespace we cannot use them https://stackoverflow.com/questions/3673353/anonymous-namespace-ambiguity).  I think it's fair to rename them because... it's local. And we already use `Wrapper` suffix for them anyways.

Reviewed By: fkgozali

Differential Revision: D8181151

fbshipit-source-id: 9b55b43fb671a56b32a862ac54f78d528e1188ce
2018-05-29 11:41:49 -07:00
..
activityindicator iOS: Support <ActivityIndicator> component 2018-05-23 10:22:47 -07:00
attributedstring Re-format BUCK to use recommended style. 2018-05-20 23:24:51 -07:00
core Adding `Wrapper` suffix to `EventHandler` and `EventHandler` type names 2018-05-29 11:41:49 -07:00
debug Re-format BUCK to use recommended style. 2018-05-20 23:24:51 -07:00
graphics Fabric: Support for object notation in dynamic-to-Point/Size/Edges converstions 2018-05-21 20:03:59 -07:00
sample Fabric: Application layer of events infrastructure 2018-05-22 16:31:58 -07:00
scrollview Fabric: ScrollView events 2018-05-22 16:31:59 -07:00
text Fabric: Support of accessibility events for <View> component 2018-05-22 16:31:58 -07:00
textlayoutmanager Re-format BUCK to use recommended style. 2018-05-20 23:24:51 -07:00
uimanager Fabric: Support for `onLayout` event 2018-05-24 18:27:59 -07:00
view Fabric: Support for `onLayout` event 2018-05-24 18:27:59 -07:00