Check out example codes for "The shrinker may have failed to optimize the Java bytecode. To disable the shrinker, pass the `--no-shrink` flag to this command.". It will help you in understanding the concepts better.

Code Example 1

buildTypes {
        release {
            signingConfig signingConfigs.debug
            minifyEnabled true
        }
        debug{
            minifyEnabled true
        }
    }

Learn ReactJs, React Native from akashmittal.com