didomi / react-native

Didomi SDK for React Native
Other
9 stars 2 forks source link

Review onReady / onError #67

Closed pmerlet-at-didomi closed 1 year ago

pmerlet-at-didomi commented 1 year ago

onReady / onError methods were not always functioning properly. This PR make these methods work the same way as described in https://developers.didomi.io/cmp/mobile-sdk/react-native/reference#onready .

They can be called any time, and if the event was already encountered, callback will be invoked immediately.