MinaSamir11 / react-native-in-app-review

The Google Play In-App Review API, App store rating API lets you prompt users to submit Play Store or App store ratings and reviews without the inconvenience of leaving your app or game.
MIT License
665 stars 62 forks source link

TypeError: null is not an object (evaluating 'InAppReviewModule.show') #3

Closed jigartankhupp closed 4 years ago

jigartankhupp commented 4 years ago

Additional Information "react-native-in-app-review": "^1.0.5" "react": "16.8.3", "react-native": "0.59.9", Platform(s) (iOS, Android, or both?): Android Operating System : macOS

InAppReview.RequestInAppReview()

MinaSamir11 commented 4 years ago

for react native 0.59.9 and below need manual linking please check doc again to see how to link library to your project in-app-review working now on android platform only, for iOS platform moving on to support it.

jigartankhupp commented 4 years ago

@MinaSamir11 After link the android project and run the app got the error Error:

/node_modules/react-native-in-app-review/android/src/main/java/com/ibits/react_native_in_app_review/AppReviewPackage.java:3: error: cannot find symbol import androidx.annotation.NonNull;

symbol: class NonNull location: package androidx.annotation

FYI - i am not using the androidX and jetifier in my project.

MinaSamir11 commented 4 years ago

@jigartankhupp add this:

in android/gradle.properties

android.useAndroidX=true android.enableJetifier=true

MinaSamir11 commented 4 years ago

If the solution above don't need to do it. Inform me