blob: 93a5390a171686ae84062bb3b0201c0af3910aef (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
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]
}
|