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] }