Transaction observer should be called after JS code initialises otherwise no callback will be registered and we would get No callback registered for transaction with state purchased. warning.
We should have a discussion about this since we might have to change the api and it will be a breaking change.
@chirag04 mentioned moving to an events based api. Callbacks are still fine in my opinion. However I am happy with either. We should discuss the pros & cons for each approach.
Transaction observer should be called after JS code initialises otherwise no callback will be registered and we would get
No callback registered for transaction with state purchased.
warning.We should have a discussion about this since we might have to change the api and it will be a breaking change.
@chirag04 mentioned moving to an events based api. Callbacks are still fine in my opinion. However I am happy with either. We should discuss the pros & cons for each approach.
There is this https://github.com/chirag04/react-native-in-app-utils/pull/108 that also addresses this issue.