Files
react-native/Libraries
Eli White bcc58bce02 Strengthen flowtype of measureLayout
Summary:
MeasureLayout requires either a reactTag or a ref to a host component. Now that we have a type for Host Components we can be more differentiating here.

Also, because Object is treated as `any` in flow, the type was allowing the return from findNodeHandle or a ref itself be passed, even though both of those are nullable.

This change explicitly requires checking for null before calling the function which is consistent with the behavior of the implementation of measureLayout.

Changelog:
[Changed] Flowtype for measureLayout now disallows null as reactTag

Reviewed By: cpojer

Differential Revision: D17579300

fbshipit-source-id: af062fcd9dfc40eab42e5c5452af2ff653d0888e
2019-09-26 08:16:23 -07:00
..
2019-08-09 10:11:15 -07:00
2019-08-09 10:11:15 -07:00
2019-09-13 07:47:57 -07:00
2019-08-09 10:11:15 -07:00
2019-08-23 08:06:44 -07:00
2019-08-09 10:11:15 -07:00
2019-08-09 10:11:15 -07:00
2019-08-09 10:11:15 -07:00
2019-09-20 13:37:25 -07:00
2019-08-09 10:11:15 -07:00
2019-08-26 23:56:59 -07:00
2019-09-20 13:37:25 -07:00
2019-08-09 10:11:15 -07:00
2019-08-09 10:11:15 -07:00
2019-08-09 10:11:15 -07:00
2019-08-09 10:11:15 -07:00
2019-09-24 18:51:45 -07:00
2019-08-09 10:11:15 -07:00
2019-07-23 03:23:11 -07:00
2019-08-26 23:56:59 -07:00