From 6056e0007a3785870da0d6fc6f5f49d2866ecaf0 Mon Sep 17 00:00:00 2001 From: MD-REHMAN Date: Fri, 22 Oct 2021 18:42:17 +0530 Subject: [PATCH] fix: add Note for using next image on next app --- docs/image.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/docs/image.md b/docs/image.md index 550e56ec4..a0c67b3a9 100644 --- a/docs/image.md +++ b/docs/image.md @@ -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 ✔ + + // DON'T ✘ + + + +```