Skip to content

Commit b4c7136

Browse files
sebmarkbagefacebook-github-bot
authored andcommitted
Don't freeze null
Reviewed By: acdlite Differential Revision: D7567032 fbshipit-source-id: ea9c826d572371748c6e9b5defbb92b427d83bee
1 parent a8e3c7f commit b4c7136

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: Libraries/StyleSheet/StyleSheet.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,9 @@ module.exports = {
366366
if (__DEV__) {
367367
for (const key in obj) {
368368
StyleSheetValidation.validateStyle(key, obj);
369-
Object.freeze(obj[key]);
369+
if (obj[key]) {
370+
Object.freeze(obj[key]);
371+
}
370372
}
371373
}
372374
return obj;

0 commit comments

Comments
 (0)