Closed
Description
Description
RCTUIManager.measure
is not working on Android
. Trying this.refs.myRef.measure()
doesn't give any results either.
Reproduction
import { findNodeHandle } from 'react-native';
const RCTUIManager = require('NativeModules').UIManager;
RCTUIManager.measure(findNodeHandle(this.refs.myRef), (x, y, width, height, pageX, pageY) => {
// Returns valid values on iOS but undefined on Android
});
Additional Information
- React Native version: 0.42.0
- Platform: Android
- Operating System: MacOS
- Dev tools: Android Studio 2.3