We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3618e65 commit 49ea8f2Copy full SHA for 49ea8f2
packages/react-native-web/src/exports/UIManager/index.js
@@ -7,6 +7,7 @@
7
* @noflow
8
*/
9
10
+import getBoundingClientRect from '../../modules/getBoundingClientRect';
11
import setValueForStyles from '../../modules/setValueForStyles';
12
13
const getRect = (node) => {
@@ -82,7 +83,7 @@ const UIManager = {
82
83
measureInWindow(node, callback) {
84
if (node) {
85
setTimeout(() => {
- const { height, left, top, width } = getRect(node);
86
+ const { height, left, top, width } = getBoundingClientRect(node);
87
callback(left, top, width, height);
88
}, 0);
89
}
0 commit comments