react-native-in-app-utils icon indicating copy to clipboard operation
react-native-in-app-utils copied to clipboard

Question about the linked tutorial

Open emrekenci opened this issue 8 years ago • 4 comments

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.

emrekenci avatar Aug 17 '16 19:08 emrekenci

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

chirag04 avatar Aug 17 '16 20:08 chirag04

Thank you.

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

emrekenci avatar Aug 18 '16 11:08 emrekenci

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!

macuna avatar Dec 08 '16 21:12 macuna

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

ryancoughlin avatar Jul 22 '17 15:07 ryancoughlin