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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invariant violation:[object] is not usable as a native method argument #25247

Closed
hunainaslam opened this issue Jun 13, 2019 · 5 comments
Closed
Labels
Bug Resolution: Locked This issue was locked by the bot.

Comments

@hunainaslam
Copy link

hunainaslam commented Jun 13, 2019

I upgraded the app to the latest react and react-native with the following versions:
"react": "16.8.6",
"react-native": "0.59.9",

I have a page using RGraph Library to display some charts, after the upgrade it just throws the following error:

Error:
Screen Shot 2019-06-13 at 1 42 44 pm

Screen Shot 2019-06-13 at 1 43 06 pm

Screen Shot 2019-06-13 at 1 45 48 pm

React Native version:

React Native Environment Info:
    System:
      OS: macOS 10.14.3
      CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
      Memory: 34.76 MB / 16.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 11.11.0 - /usr/local/opt/nvm/versions/node/v11.11.0/bin/node
      npm: 6.7.0 - /usr/local/opt/nvm/versions/node/v11.11.0/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
      Android SDK:
        API Levels: 26, 27, 28
        Build Tools: 27.0.3, 28.0.3
        System Images: android-25 | Google APIs Intel x86 Atom, android-27 | Google APIs Intel x86 Atom
    IDEs:
      Android Studio: 3.3 AI-182.5107.16.33.5314842
      Xcode: 10.1/10B61 - /usr/bin/xcodebuild
    npmPackages:
      react: ^16.3.1 => 16.8.6
      react-native: ^0.59.0 => 0.59.9
    npmGlobalPackages:
      create-react-native-app: 2.0.2
      react-native-cli: 2.0.1
      react-native-git-upgrade: 0.2.7
@zengfenfei
Copy link

So is this a bug? I have similar problem when inspecting UI using react-devtools, didn't find a solution yet.

@zengfenfei
Copy link

Screen Shot 2019-07-26 at 7 33 03 PM

@hunainaslam
Copy link
Author

@zengfenfei I fixed it myself. It was an issue with the way I was linking the external JS to webview.

@Keped
Copy link

Keped commented Jul 31, 2019

@hunainaslam can you please show what you changed in your code?
having the same problem

@16oh4
Copy link

16oh4 commented Apr 1, 2020

@zengfenfei I have the EXACT same problem using react-devtools at the root element Using Expo SDK 37.0. Whenever I enable the Element Inspector, and hover over the element, it crashes.
image

image

@facebook facebook locked as resolved and limited conversation to collaborators Jun 14, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jun 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

5 participants