-
Notifications
You must be signed in to change notification settings - Fork 25k
Closed
Labels
Ran CommandsOne of our bots successfully processed a command.One of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Description
- Review the documentation: https://facebook.github.io/react-native
- Search for existing issues: https://github.com/facebook/react-native/issues
- Use the latest React Native release: https://github.com/facebook/react-native/releases
Environment
Run react-native info in your terminal and paste its contents here.
Description
code in mergeInto has potential error about Object created by Object.create(null). they does not have Object.prototype chain, so two.hasOwnProperty shows following error.
I'm facing this issue with react-native-extended-stylesheet and FlatList. FlatList has two style property (style, contentContainerStyle). I think these two styles are merged into one by mergeInto.
Environment
[skip envinfo]. The code was written 4 years ago, so I think it's affected on all RN environments.
Reproducible Demo
Sorry, doesn't have demo.
Suggestions
two.hasOwnProperty(key) should be Object.prototype.hasOwnProperty.call(two, key). this makes all thing works well. 😃
Metadata
Metadata
Assignees
Labels
Ran CommandsOne of our bots successfully processed a command.One of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
