diff --git a/src/components/devsupport/components/measure/measure.component.tsx b/src/components/devsupport/components/measure/measure.component.tsx index 8abb33f5c..f68b6e02d 100644 --- a/src/components/devsupport/components/measure/measure.component.tsx +++ b/src/components/devsupport/components/measure/measure.component.tsx @@ -74,8 +74,14 @@ export const MeasureElement: React.FC = (props): MeasuringE }; const measureSelf = (): void => { - const node: number = findNodeHandle(ref.current); - UIManager.measureInWindow(node, onUIManagerMeasure); + try { + const node: number = findNodeHandle(ref.current); + UIManager.measureInWindow(node, onUIManagerMeasure); + } catch (error) { + // measureInWindow can throw an exception if the UI manager isn't read yet. + // Try again with a short delay + setTimeout(measureSelf, 100); + } }; if (props.force) {