I’m trying to use an offering with multiple packages (using custom identifiers), and the documentation is incorrect when it says you can access an offering and a package via its identifier in this section:
https://www.revenuecat.com/docs/displaying-products#displaying-packages
It says to use this code:
offerings.all("experiment_group").package("<package_id>")
But in the RevenueCat SDK, “all” is a property and not a method. See PurchasesOfferings interface:
Similarly, there is no “package” function on the PurchasesOffering interface:
https://revenuecat.github.io/react-native-purchases-docs/5.13.1/interfaces/PurchasesOffering.html
It seems like the only way to get this is to search through the availablePackages array until you find a matching identifier.