Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

OverflowMenu throws error Argument 0 (NSNumber) of UIManager.measureInWindow must not be null #1751

Open
AnsonT opened this issue Jun 7, 2023 · 1 comment

Comments

@AnsonT
Copy link

AnsonT commented Jun 7, 2023

馃悰 Bug Report

In some rendering conditions, e.g. using overflow within an item in FlatList can throw this error:
Argument 0 (NSNumber) of UIManager.measureInWindow must not be null

To Reproduce

Steps to reproduce the behavior:

Unfortunately, I haven't been able to create a shorter repo, but the scenario involves loading item dynamically for a FlatList.
Each item includes an OverflowMenu

Expected behavior

No error is thrown

ERROR

The error occurs in src/components/devsupport/components/measure/measure.component.tsx:

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

node is sometimes null

UI Kitten and Eva version

Package Version
@eva-design/eva 2.2.0
@ui-kitten/components 5.3.1

Environment information

System:
OS: macOS 13.4
CPU: (10) arm64 Apple M1 Max
Binaries:
Node: 18.15.0 - ~/.asdf/installs/nodejs/lts-hydrogen/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 9.5.0 - ~/.asdf/plugins/nodejs/shims/npm
Watchman: 2023.05.22.00 - /opt/homebrew/bin/watchman
SDKs:
iOS SDK:
Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
IDEs:
Android Studio: 2022.1 AI-221.6008.13.2211.9619390
Xcode: 14.3.1/14E300c - /usr/bin/xcodebuild
npmPackages:
react: 18.2.0 => 18.2.0
react-native: 0.71.7 => 0.71.7

AnsonT added a commit to AnsonT/react-native-ui-kitten that referenced this issue Jun 7, 2023
@AnsonT AnsonT mentioned this issue Jun 7, 2023
2 tasks
@josmmv
Copy link

josmmv commented Jul 6, 2023

I'm getting this error too. I applied this change 01ac76a mentioned in the pull request #1752 and it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants