apps-sdk 1.0.93 → 1.0.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apps-sdk",
3
- "version": "1.0.93",
3
+ "version": "1.0.95",
4
4
  "description": "Apps SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -71,7 +71,7 @@ class PayWall extends React.Component {
71
71
  let subscribed = PayWallLogic.executePurchase(this.paywallData.products_id[0], this.hideSpinner, this.hidePayWall).then((subscribed) => {
72
72
  console.log('subscription result: ',subscribed);
73
73
  if (subscribed) {
74
- this.props.onSubscribe();
74
+ this.props.onSubscribe(false);
75
75
  }
76
76
  });
77
77
  }
@@ -92,7 +92,7 @@ class PayWall extends React.Component {
92
92
  let subscribed = PayWallLogic.restorePurchase(this.hideSpinner, this.hidePayWall).then((subscribed) => {
93
93
  console.log('subscription result: ',subscribed);
94
94
  if (subscribed) {
95
- this.props.onSubscribe();
95
+ this.props.onSubscribe(true);
96
96
  }
97
97
  });
98
98
  }
@@ -140,7 +140,7 @@ class PayWall extends React.Component {
140
140
  }
141
141
 
142
142
  return (
143
- <BottomSheet visible={visible} onBackButtonPress={onClose} onBackdropPress={onClose}>
143
+ <BottomSheet visible={visible}>
144
144
  <View style={styles.bottomNavigationView}>
145
145
  <WebView style={{flex:1}} source={{ uri: this.paywallData.url }} javaScriptEnabled ref={this.webviewRef} onMessage={this.handleMessage} onError={(err) => {console.log('Error al cargar webview:',err)}} injectedJavaScript={PayWallLogic.paywallJS}
146
146
  onShouldStartLoadWithRequest={request => {