Skip to content

Commit

Permalink
fix example key
Browse files Browse the repository at this point in the history
  • Loading branch information
achorein committed Apr 18, 2024
1 parent 682ce6a commit 44e79d7
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions example/basic/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Button, Image, StyleSheet, Text, View } from "react-native";

import { useShareIntent, ShareIntentFile } from "expo-share-intent";
import { Fragment } from "react";

export default function App() {
const { hasShareIntent, shareIntent, resetShareIntent, error } =
Expand All @@ -27,16 +28,12 @@ export default function App() {

{/* FILES */}
{shareIntent?.files?.map((file) => (
<>
<Fragment key={file.path}>
{file.mimeType.startsWith("image/") && (
<Image
key={file.path}
source={{ uri: file.path }}
style={[styles.image]}
/>
<Image source={{ uri: file.path }} style={[styles.image]} />
)}
<FileMeta key={file.path} file={file} />
</>
<FileMeta file={file} />
</Fragment>
))}

{/* FOOTER */}
Expand Down

0 comments on commit 44e79d7

Please sign in to comment.