-
-
Notifications
You must be signed in to change notification settings - Fork 634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android ExpoKit: undefined is not an object (evaluating 'RNIapModule.prepare') #46
Comments
@brentjanderson |
@dooboolab You're right about |
Also tried unlinking and relinking the project just now, targeting a prod build instead of a debug build, still no dice. Also, thank you for your prompt reply! |
@brentjanderson
Am I right with above? Thank you. |
@dooboolab late reply to your previous message:
One error that I noticed when starting Android Studio that may be useful:
I am still baffled by this and will be shipping the iOS version with IAP (Thanks again for this marvelous module) but holding back on the Android IAP until getting this resolved. |
Figured it out. For future reference:
Now that I am using the |
Sorry, I have no idea about how to modify the AndroidManifest.xml to accommodate deep linking schemes, and how to disable the .MainActivity section, relying instead on the .LauncherActivity section for deep linking and MAIN and LAUNCHER intent. May i ask how to implement that? |
Here is a snippet from my AndroidManifest.xml file (located in
I commented out the section of AndroidManifest.xml a few lines lower that refers to The LauncherActivity is not in use in my project, just the MainActivity. |
Thank you very much! I learned how to add deep link scheme, and how to add intent to another activity. I added it into the same intent block. Thanks again! |
Version of react-native-iap
0.2.14
Expected behavior
RNIap.prepareAndroid()
prepares androidActual behavior
Errors out with
undefined is not an object (evaluating 'RNIapModule.prepare')
Steps to reproduce the behavior
Running
RNIap.prepareAndroid()
. I tried creating a fresh-from-scratch ExpoKit project to duplicate the issue, and it actually worked just fine. I've tried a variety of approaches including:I'm completely confused.
The text was updated successfully, but these errors were encountered: