Skip to content

Commit

Permalink
merge this pull request: akveo#1752
Browse files Browse the repository at this point in the history
  • Loading branch information
saadnvd1 committed Oct 7, 2023
1 parent ee7aa83 commit b144965
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ export const MeasureElement: React.FC<MeasureElementProps> = (props): MeasuringE

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

if (node) {
UIManager.measureInWindow(node, onUIManagerMeasure);
}
};

if (props.force) {
Expand Down

0 comments on commit b144965

Please sign in to comment.