Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions docs/image.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,29 @@ Generic Image components from [React Native](https://reactnative.dev).
```ComponentPropTable path=primitives,Image,index.tsx showStylingProps=true

```

## Note

### With Next's require statement

When using require statement from next for image keep this in mind.

```jsx

const img = require('/public/me.jpg');

// DO ✔
<Image
source={{ uri: img.default.src }}
width={500}
height={500}
/>
// DON'T ✘
<Image
source={img}
width={500}
height={500}
/>


```