Community Support

Promise-style syntax for react library

I’m evaluating the react native library for my app. Do you plan on supporting promise-style or callback-style syntax in addition to the event style?

I’m looking at the code examples. For instance, could we do




Hi ashankar,

We will definitely take your suggestion on board for a future API update! We implemented the Spokestack React Native API using callbacks instead of promises since that is the common async pattern for React Native libraries. For now, you may be interested in learning an easy way to turn callbacks into promises.

Thanks for using Spokestack,