Closed
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. 😃