2019.06.25

  1. Duplicate file

React-native: Duplicate file problem, multiple files, mainly image resources.

How it works: React Native renames images and video resources in the RN based on their location and stores them in the drawable- XXX or raw folder. However, an error will be reported when a file with the same name already exists in the folder when saving the file.

Solution: If the preceding error occurs, delete the files automatically generated in the resource folder when you package the file.