Purchasely / Purchasely-ReactNative

Other
13 stars 2 forks source link

New start method #66

Closed kherembourg closed 11 months ago

kherembourg commented 1 year ago

Replace Purchasely.startWithApiKey() with Purchasely.start() to make all arguments optional except ApiKey

Allow user to force StoreKit 1 for iOS

await Purchasely.start({
  apiKey: 'fcb39be4-2ba4-4db7-bde3-2a5a1e20745d',
  logLevel: LogLevels.DEBUG, // to force log level for debug
  userId: 'test-user', // if you know your user id
  runningMode: RunningMode.FULL, // to set mode manually
  storeKit1: false, // default is StoreKit2
  androidStores: ['Google', 'Huawei'] // Google is already set by default
});