Skip to content

Commit

Permalink
Measure a node only if it has been found, fixes issue akveo#1782
Browse files Browse the repository at this point in the history
  • Loading branch information
psegalen committed Nov 7, 2023
1 parent ee7aa83 commit fcda79e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const MeasureElement: React.FC<MeasureElementProps> = (props): MeasuringE

const measureSelf = (): void => {
const node: number = findNodeHandle(ref.current);
UIManager.measureInWindow(node, onUIManagerMeasure);
if (typeof node === 'number') UIManager.measureInWindow(node, onUIManagerMeasure);
};

if (props.force) {
Expand Down

0 comments on commit fcda79e

Please sign in to comment.