Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
static options({_id}) {
return {
style: 'form',
tintColor: color(_id),
topBar: {
title: {
text: t.s('inviteMorePeople')
}
},
animations: {
push: {
waitForRender: true,
}
}
}
}
render() {
const {item, status, message, collection, onAddTags, onToggleImportant, onEdit, onClose, onTryAgain} = this.props
const color = collectionColor(collection._id)
let content = null, dismissEnabled = true, showBody = true
switch(status){
case 'error':
dismissEnabled = false
content = (
<title>{message||t.s('error')}</title>
{/*{t.s('tryAgain')}*/}
{this.closeButton}
)
break;
case 'notFound':
export default (options, {link, type, collectionId})=>{
openURL(options, {
link,
readerMode: type=='article',
barColor: themed.main(),
iconColor: themed._tintColor(collectionColor(collectionId))
})
}
static options = ({spaceId=0})=>({
tintColor: color(parseInt(spaceId)),
modalPresentationStyle: 'pageSheet',
topBar: {
animate: false,
visible: false,
drawBehind: true
},
bottomTab: {
icon: require('assets/images/tab/search.png'),
text: t.s('defaultCollection-0')
}
})
static options({collectionId}) {
return {
tintColor: color(collectionId),
topBar: {
title: {
text: t.s('uploadProgress')
}
}
}
}
static options({_id}) {
return {
style: 'form',
tintColor: color(_id),
topBar: {
title: {
text: t.s('collection')
},
...doneButton
},
animations: {
push: {
waitForRender: true,
}
}
}
}
openBookmark = (options={})=>{
Navigation.openURL({
componentId: this.props.componentId,
...options
}, {
browser: options.reactTag ? 'default' : '',
link: this.props.item.link,
iconColor: themed._tintColor(collectionColor(this.props.item.collectionId))
})
}
static options({_id}) {
return {
tintColor: color(_id),
topBar: {
title: {
text: t.s('members')
}
}
}
}
static options({collectionId}) {
return {
style: 'form',
tintColor: color(collectionId),
topBar: {
title: {
text: t.s('newBookmark')
}
}
}
}
const getOptions = ({ spaceId })=>({
tintColor: color(spaceId),
topBar: {
title: {
component: {
name: 'bookmarks/title',
alignment: Platform.OS == 'ios' ? 'center' : 'fill',
passProps: {
spaceId
}
}
},
rightButtons: [
...(
spaceId != -99 ? [{