-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
TypeError: In this environment the sources for assign MUST be an object. This error is a performance optimization and not spec compliant. #19009
Comments
I'm hitting the same, in multiple components on Android and only Android: <View
style={[
styles.stickyHeader,
{
width: viewWidth,
...(stickyHeaderHeight ? { height: stickyHeaderHeight } : null),
},
]}
>
... (in my forked version of https://github.com/maxs15/react-native-modalbox/blob/master/index.js) By process of elimination, I tried taking out components that included the offending line that triggered the same Looking at https://github.com/facebook/react-native/blob/0.54-stable/Libraries/polyfills/Object.es6.js which throws this error. This error is thrown only when Can this error be changed to a console.warn instead of a redbox on PS. in my app, iOS works fine and I support only iOS 9 and up. I just started testing on Android, and I keep hitting this error. I assume issue writer above is hitting this on iOS 8 or lower. |
Closing as the original issue has no description of the issue. Please open a new issue with more information. |
Hey stupid bot, there's plenty of description here including screenshots. |
The bot is right, I had the exact same error message and I just fixed it. Your error message is just not telling you your error. I was working in an Expo react native project with the Animated library dealing with rotation. To rotate with degrees one must use a string ex '-120deg'. My error was I put '-120eg' on my strings. I'd say you are sending data as the wrong type in one of your files. @fungilation @selabie68 |
Im having the same error following Scott Talinski (level up) tutorial called React Native For Everyone (video #12) cant figure out wtf is going on here. iOS and Android is bugging out. where the hell is View(at YellowBox.js:425)? |
@fungilation I just noticed a particular in your code, similar to a particular in my code
As well as I was trying to use
|
Interesting. I've since avoided the issue at init by always assigning a |
I faced the same issue, the issue happens when you try to use spread operator on a non object|array |
For me, the error happened when passing something different than an
Simple solution:
|
In my case I incorrectly curried a function inside my component class: // Incorrect, with typo
renderFoo = (x) = (y) => {}
// Correct
renderFoo = (x) => (y) => {} |
This explaination is absolutely correct! |
Environment
Steps to Reproduce
Happens on loading of app.
The text was updated successfully, but these errors were encountered: