Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getNavbarProps() {
const { selectedPhotoIndex, mode } = this.state;
const { photos } = this.props;
if (mode === ImageGallery.IMAGE_PREVIEW_MODE) {
return {
styleName: 'clear none',
};
}
const selectedPhoto = photos[selectedPhotoIndex];
return {
styleName: 'clear',
title: `${selectedPhotoIndex + 1} / ${photos.length}`,
share: {
title: _.get(selectedPhoto, 'title'),
link: _.get(selectedPhoto, 'source.uri'),
},
};
}
getNavbarProps() {
const { selectedPhotoIndex, mode } = this.state;
const { photos } = this.props;
if (mode === ImageGallery.IMAGE_PREVIEW_MODE) {
return {
styleName: 'clear none',
};
}
const selectedPhoto = photos[selectedPhotoIndex];
return {
styleName: 'clear',
title: `${selectedPhotoIndex + 1} / ${photos.length}`,
share: {
title: _.get(selectedPhoto, 'title'),
link: _.get(selectedPhoto, 'source.uri'),
},
};
}
getNavbarProps() {
const { selectedPhotoIndex, mode } = this.state;
const { photos } = this.props;
if (mode === ImageGallery.IMAGE_PREVIEW_MODE) {
return {
styleName: 'clear none',
};
}
const selectedPhoto = photos[selectedPhotoIndex];
return {
styleName: 'clear',
title: `${selectedPhotoIndex + 1} / ${photos.length}`,
share: {
title: _.get(selectedPhoto, 'title'),
link: _.get(selectedPhoto, 'source.uri'),
},
};
}
getNavbarProps() {
const { selectedPhotoIndex, mode } = this.state;
const { photos } = this.props;
if (mode === ImageGallery.IMAGE_PREVIEW_MODE) {
return {
styleName: 'clear none',
};
}
const selectedPhoto = photos[selectedPhotoIndex];
return {
styleName: 'clear',
title: `${selectedPhotoIndex + 1} / ${photos.length}`,
share: {
title: _.get(selectedPhoto, 'title'),
link: _.get(selectedPhoto, 'source.uri'),
},
};
}