Skip to content

RCTUIManager.measure not working on Android #12966

Closed
@anshul-kai

Description

@anshul-kai

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions