Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/react-native/Libraries/StyleSheet/processFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default function processFilter(
}
}
}
} else {
} else if (Array.isArray(filter)) {
for (const filterFunction of filter) {
const [filterName, filterValue] = Object.entries(filterFunction)[0];
if (filterName === 'dropShadow') {
Expand All @@ -107,6 +107,8 @@ export default function processFilter(
}
}
}
} else {
throw new TypeError(`${typeof filter} filter is not a string or array`);
}

return result;
Expand Down