Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR removes error `Cannot read property 'x' of undefined` when using `measure` function. For details, see changes. Follow-up of #3598 and #3453. References: * https://github.com/facebook/react-native/blob/278dad6438eac8358a6caaf9dc3b192c0b6137e2/ReactCommon/react/renderer/uimanager/UIManagerBinding.cpp#L557-L560 – `measure` * https://github.com/facebook/react-native/blob/8bd3edec88148d0ab1f225d2119435681fbbba33/ReactCommon/react/renderer/core/LayoutMetrics.h#L63-L69 – `EmptyLayoutMetrics` * Changed the return value of native measure function from `undefined` to `null` in case of empty layout metrics * Fixed type of `_measure` function in `globals.d.ts` * Added appropriate variant of warning message in case of empty layout metrics * Added missing spaces in other warning message in `measure` function * Updated Article Progress Example Tested on FabricExample app with Article Progress Example.
- Loading branch information