title: Any working Proguard Configuration for Android App with React Native with obfuscation?
body: <p>When I use the <code>-dontobfuscate</code> option in my existing android app with a single React Native screen, release build works fine.</p>
  
  <p>(I had to also set react native configurations for pro-guard from <a href="https://github.com/facebook/react-native/blob/master/local-cli/generator-android/templates/src/app/proguard-rules.pro" rel="nofollow noreferrer">https://github.com/facebook/react-native/blob/master/local-cli/generator-android/templates/src/app/proguard-rules.pro</a>) </p>
  
  <p>However, I want to obfuscate my existing app and ignore react-native obfuscation only (since it's not supported as per : <a href="https://github.com/facebook/react-native/issues/7530" rel="nofollow noreferrer">https://github.com/facebook/react-native/issues/7530</a>)</p>
  
  <p>After commenting out <code>-dontobfuscate</code>, I got these errors:</p>
  
  <pre><code>Warning: com.facebook.react.views.recyclerview.NotAnimatedItemAnimator: can't find referenced method 'void dispatchRemoveStarting(android.support.v7.widget.RecyclerView$ViewHolder)' in program class com.facebook.react.views.recyclerview.NotAnimatedItemAnimator
  Warning: com.facebook.react.views.recyclerview.NotAnimatedItemAnimator: can't find referenced method 'void dispatchRemoveFinished(android.support.v7.widget.RecyclerView$ViewHolder)' in program class com.facebook.react.views.recyclerview.NotAnimatedItemAnimator
  ...
  </code></pre>
  
  <p>I tried below configurations and NONE of them work. They either throw warnings during proguard phase of <code>assembleRelease</code> or once built, throws exception on first launch of react native screen. </p>
  
  <ol>
  <li><p>First Config Try: </p>
  
  <pre><code>-keep class com.facebook.react.** { public protected private *; }
  </code></pre></li>
  <li><p>Second Config Try:</p>
  
  <pre><code>-dontwarn android.support.v7.**
  
  -keep class android.support.v7.** { *; }
  
  -keep interface android.support.v7.** { *; }
  </code></pre></li>
  <li><p>Third config try: </p>
  
  <pre><code>-keep class android.support.v7.internal.** { *; }
  
  -keep interface android.support.v7.internal.** { *; }
  </code></pre></li>
  <li><p>Fourth config Try:</p>
  
  <pre><code>support-v7
  
  -dontwarn android.support.v7.**
  
  -keep class android.support.v7.internal.** { *; }
  
  -keep interface android.support.v7.internal.** { *; }
  
  -keep class android.support.v7.** { *; }
  </code></pre></li>
  </ol>
  
  <p>Exceptions like: </p>
  
  <pre><code>  Caused by: java.lang.IllegalAccessError: Method 'void android.support.v4.net.ConnectivityManagerCompat.&lt;init&gt;()' is inaccessible to class 'com.facebook.react.modules.netinfo.NetInfoModule' (declaration of 'com.facebook.react.modules.netinfo.NetInfoModule' appears in /data/app/com.sampleapp-1/base.apk)
                                                       at com.facebook.react.modules.netinfo.NetInfoModule.&lt;init&gt;(NetInfoModule.java:55)
  </code></pre>
  
  <p>Anyone with working release apk (Existing android app) with react-native, can you please share your proguard configurations?</p>