Skip to content

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

Description

@hunainaslam

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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