Skip to content

Commit

Permalink
fix: attempt for notifications with attachments on iOS typo
Browse files Browse the repository at this point in the history
  • Loading branch information
trajano committed Nov 10, 2024
1 parent 251418c commit de5de1f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/my-app/src/stories/Notification.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const ExpoNotificationsView: FC<
const uuid = Crypto.randomUUID();
const nextAssets = _.cloneDeep(localAssets.filter((it) => it.downloaded));
for (const asset of nextAssets) {
const tempLocalUri = `file://${FileSystem.cacheDirectory}${asset.hash}.${uuid}.${asset.type}`;
const tempLocalUri = `${FileSystem.cacheDirectory}${asset.hash}_${uuid}.${asset.type}`;

await FileSystem.copyAsync({
from: asset.localUri!,
Expand Down Expand Up @@ -74,10 +74,10 @@ const ExpoNotificationsView: FC<
.filter((it) => it)
.map((it) => ({
identifier: it.hash,
type: `public.${it.type}`,
type: it.type,
typeHint: `public.${it.type}`,
url: it.localUri,
hideThumbnail: false,
url: it.localUri!,
// hideThumbnail: false,
}));
}, [assets]);

Expand Down

0 comments on commit de5de1f

Please sign in to comment.