Skip to main content
The ClickTerm React Native SDK is Promise-based. show() and showAcceptedContent() return Promises that resolve on success and reject with an Error (carrying a .code property) on failure.

Show result

When show() completes:

Possible outcomes

A null Signature resolved from show() means the user has already accepted the latest major version. No action is needed on your part.

Error handling

Errors are thrown as standard Error instances with a non-standard code property whose value is one of the documented ClicktermErrorCode strings. Read code from the caught error to drive your application’s response:

ClicktermErrorCode values

ERR_CLICKTERM_NO_PRESENTER and ERR_CLICKTERM_NO_ACTIVITY are platform-specific; you typically only see the one that matches the OS your app is running on.

Show accepted content result

showAcceptedContent() follows the same pattern: it resolves with the stored ClickwrapTemplateContent or rejects with an Error whose code is a ClicktermErrorCode.
showAcceptedContent only works if the end user has an accepted and verified event for the given template.