title: How To Enable Proguard with react native?
body: <p>I want to reduce my APK Size 
  I followed these <a href="https://facebook.github.io/react-native/docs/signed-apk-android" rel="nofollow noreferrer">https://facebook.github.io/react-native/docs/signed-apk-android</a><br>
  and run ./gradlew bundleRelease instead of assembleRelease 
  But I Got Error </p>
  
  <blockquote>
    <p>Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.
    Job failed,</p>
  </blockquote>
  
  <p>So how can I solve it, I'm Google it but the issue is still! 
  But without Enable Proguard it's work very well and I got (Aab &amp; .Apk )  SO How To Solve it!</p>
  
  <p>I think the issue with this file but I don't know how to configure that!</p>
  
  <p><strong>proguard-rules.pro</strong></p>
  
  <pre><code>
  # If your project uses WebView with JS, uncomment the following
  # and specify the fully qualified class name to the JavaScript interface
  # class:
  #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
  #   public *;
  #}
  
  </code></pre>
  
  <p><strong>Package.json</strong></p>
  
  <pre><code>{
    "name": "APP_NAME",
    "version": "1.12.3",
    "private": true,
    "scripts": {
      "start": "node node_modules/react-native/local-cli/cli.js start",
      "test": "jest"
    },
    "dependencies": {
      "@react-native-community/async-storage": "^1.4.2",
      "@turf/distance": "^6.0.1",
      "@turf/helpers": "^6.1.4",
      "@turf/invariant": "^6.1.2",
      "@turf/turf": "^5.1.6",
      "firebase-admin": "^8.1.0",
      "firebase-functions": "^3.0.1",
      "lodash": "^4.17.11",
      "moment": "^2.24.0",
      "react": "16.8.6",
      "react-moment": "^0.9.2",
      "react-native": "0.59.8",
      "react-native-app-intro-slider": "^3.0.0",
      "react-native-datepicker": "^1.7.2",
      "react-native-fcm": "^16.2.4",
      "react-native-firebase": "5.3.1",
      "react-native-gesture-handler": "1.2.1",
      "react-native-image-picker": "^0.28.0",
      "react-native-linear-gradient": "^2.5.4",
      "react-native-maps": "^0.24.2",
      "react-native-stars": "^1.1.5",
      "react-native-svg": "^9.3.3",
      "react-native-vector-icons": "^6.4.2",
      "react-navigation": "3.11.0"
    },
    "devDependencies": {
      "@babel/parser": "^7.4.4",
      "babel-core": "7.0.0-bridge.0",
      "babel-jest": "24.8.0",
      "jest": "24.8.0",
      "metro-react-native-babel-preset": "0.54.1",
      "react-devtools": "^3.6.1",
      "react-test-renderer": "16.8.6"
    },
    "jest": {
      "preset": "react-native"
    }
  }
  </code></pre>