Fix to blurviews

This commit is contained in:
Paul Frazee
2023-01-26 18:15:43 -06:00
parent d04a6d7539
commit 20ccb03427
6 changed files with 55 additions and 18 deletions
+11
View File
@@ -0,0 +1,11 @@
import {StyleProp} from 'react-native'
export function addStyle<T>(
base: StyleProp<T>,
addedStyle: StyleProp<T>,
): StyleProp<T> {
if (Array.isArray(base)) {
return base.concat([addedStyle])
}
return [base, addedStyle]
}