question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
Kepedcommented, Jul 31, 2019

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

1reaction
zengfenfeicommented, Jul 26, 2019

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invariant Violation: is not usable as a native method argument ...
@xgenem i'm using the StyleSheet, my code was this: fieldTextStyle: { width: "100%", backgroundColor: colors.backgroundTextInput, height: 1, ...
Read more >
React Native, 'is not usable as a native method argument'
I encountered this issue while using Axios with formData field without converting the appended data to string format. Gives errors: const ...
Read more >
React Native, 'is not usable as a native method argument'
Coding example for the question React Native, 'is not usable as a native method argument'-React Native.
Read more >
Problem setting position of an element with dynamic styling
... Invariant Violation: [27,"RCTView",{"top":-603.3333282470703,"left":-25.333328247070312}] is not usable as a native method argument.
Read more >
Common bugs in React Native - Morioh
Invariant Violation: Element type is invalid: expected a string (for ... Check the render method of 'App'. ... is not usable as a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found