D
D
deppa11182020-06-10 21:49:05
React Native
deppa1118, 2020-06-10 21:49:05

React native how to get file properties?

How to get file properties. By type of author, if this is audio, then the duration. Those as in the windows file properties section for details.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nick, 2020-06-10
@deppa1118

In general, it all depends on the specific type of file, and parsing its metadata
from an image is worth parsing EXIF
​​from mp3 parsing ID3 (you can adapt existing libraries like this )
if you need general data about the file (size, creation date, etc), then you can use the stat method from react -native-fs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question