Skip to content

Commit

Permalink
[chore]: update imports from react-native-iap (#2204)
Browse files Browse the repository at this point in the history
replace twice import of requestSubscription with requestPurchase.
  • Loading branch information
vishalpwr authored Jan 20, 2023
1 parent 4f02a9a commit 9058872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/guides/purchases.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class App extends Component {
Then define the method like below and call it when user press the button.

```tsx
import { requestSubscription, requestSubscription } from 'react-native-iap';
import { requestPurchase, requestSubscription } from 'react-native-iap';
...
class App extends Component {
purchase = async (sku: string) => {
Expand Down

0 comments on commit 9058872

Please sign in to comment.