react-native-actionsheet
Version:
Cross platform ActionSheet. This component implements a custom ActionSheet and provides the same way to drawing it on the defferent platforms(iOS and Android). Actually, In order to keep the best effect, it still uses the ActionSheetIOS on iOS.
15 lines (13 loc) • 361 B
JavaScript
export function isset (prop) {
return typeof prop !== 'undefined'
}
export function merge (target, source) {
Object.keys(source).forEach((key) => {
if (Object.prototype.toString.call(source).slice(8, -1) === 'Object') {
target[key] = merge(target[key] || {}, source[key])
} else {
target[key] = source[key]
}
})
return target
}