What went wrong:
A problem occurred evaluating project ':react-native-share'.
Could not find method compileOnly() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.art
ifacts.dsl.dependencies.DefaultDependencyHandler.
react-native run-android