title: A problem occurred evaluating project ':react-native-share'
body: <p>I try this commands for the installation of the library react-native-share    </p>
  
  <pre><code>npm install react-native-share --save
  
  react-native link react-native-share
  </code></pre>
  
  <p>But i got this error: </p>
  
  <pre><code>A problem occurred evaluating project ':react-native-share'.
  &gt; Could not find method compileOnly() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler
  </code></pre>