1rm -rf ./android/app/src/main/res/drawable-*
2
3rm -rf ./android/app/src/main/res/raw
4
5OR
6
7add following code to node_modules/react-native/react.gradle
8
9doLast {
10 def moveFunc = { resSuffix ->
11 File originalDir = file("$buildDir/generated/res/react/release/drawable-${resSuffix}");
12 if (originalDir.exists()) {
13 File destDir = file("$buildDir/../src/main/res/drawable-${resSuffix}");
14 ant.move(file: originalDir, tofile: destDir);
15 }
16 }
17 moveFunc.curry("ldpi").call()
18 moveFunc.curry("mdpi").call()
19 moveFunc.curry("hdpi").call()
20 moveFunc.curry("xhdpi").call()
21 moveFunc.curry("xxhdpi").call()
22 moveFunc.curry("xxxhdpi").call()
23}