diff --git a/Libraries/StyleSheet/StyleSheetValidation.js b/Libraries/StyleSheet/StyleSheetValidation.js index bfa09f702e6248..456953f7a064f8 100644 --- a/Libraries/StyleSheet/StyleSheetValidation.js +++ b/Libraries/StyleSheet/StyleSheetValidation.js @@ -51,6 +51,9 @@ class StyleSheetValidation { if (!__DEV__ || global.__RCTProfileIsProfiling) { return; } + if (!styles[name]) { + return; + } const styleProps = Object.keys(styles[name]); for (const prop of styleProps) { StyleSheetValidation.validateStyleProp(