Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
pressShare = async () => {
const { trashPoint, photo } = this.props;
const description = trashPoint.composition[0];
const branchUniversalObject = await branch
.createBranchUniversalObject(trashPoint.id, {
locallyIndex: true,
title: trashPoint.name,
contentDescription: description,
contentImageUrl: photo,
contentMetadata: {
ratingAverage: 4.2,
customMetadata: {
type: 'trashpoint',
name: trashPoint.name,
address: trashPoint.address,
amount: trashPoint.amount,
areas: trashPoint.areas.join(),
composition: trashPoint.composition.join(),
counter: trashPoint.counter.toString(),
createdAt: trashPoint.createdAt,
pressShare = async () => {
const { event, photo } = this.props;
const branchUniversalObject = await branch.createBranchUniversalObject(event.id, {
locallyIndex: true,
title: event.name,
contentDescription: event.description,
contentImageUrl: photo,
});
const linkProperties = {
feature: 'share',
channel: 'RNApp',
};
const controlParams = {
$desktop_url: 'https://www.worldcleanupday.org/map-it/',
$uri_redirect_mode: 2,
type: 'event',
};