Q:

How to copy images (such as albums) on the local disk to the image tag？

RN Chinese online said image tags can be directly displayed on the local disk (such as albums), how to set up？
https://reactnative.cn/docs/image/

A:

First get the phone read and write permissions and camera permissions. Set as follows:

<Image style={{ width: '100%', height: '100%' }} source={{ uri: 'file:///storage/emulated/0/Download/crop_20a7dc7fbd29d679b456fa0f77bd9525d.jpg'}} />

The same is true for the video: image gets the first frame of the video

<Image style={{ width: '100%', height: '100%' }} source={{ uri: 'file:///storage/emulated/0/tencent/MicroMsg/WeiXin/1534588747082.mp4'}} />

