Invariant violation:[object] is not usable as a native method argument
See original GitHub issueI 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:
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:
- Created 4 years ago
- Comments:5
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@hunainaslam can you please show what you changed in your code? having the same problem