chirag04 / react-native-in-app-utils

A react-native wrapper for handling in-app payments
MIT License
890 stars 185 forks source link

Question about the linked tutorial #43

Open emrekenci opened 8 years ago

emrekenci commented 8 years ago

In the linked tutorial, on step 5 it's telling to add your view controller as below:

#import <StoreKit/StoreKit.h>

//put the name of your view controller in place of MyViewController
@interface MyViewController() <SKProductsRequestDelegate, SKPaymentTransactionObserver>

@end

@implementation MyViewController //the name of your view controller (same as above)
  //the code below will be added here
@end

What should I use instead of MyViewController?

I'm actually not sure if I need to complete the entire tutorial including setting product IDs in kRemoveAdsProductIdentifier etc. for your library to work. I'd appreciate if you could make this clear for me.

Thanks for your help.

chirag04 commented 8 years ago

you only need to follow till point 13. after that it's for people using objectivec

emrekenci commented 8 years ago

Thank you.

In that case, can you please tell me what to do about the ViewController?

macuna commented 7 years ago

The tutorial is confusing, I only have a AppDelegate.h and AppDelegate.m, where I supposed to add import <StoreKit/StoreKit.h> and everything ?

Thanks!

ryancoughlin commented 7 years ago

Ia this appropriate here since this is for the library itself not handling in-app purchases with React Native?