Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Initialization
Initialize the SDK object and use it anywhere in your application.
Warning |
---|
Remember to initialize the SDK only once on application launch. |
Code Block | ||||
---|---|---|---|---|
| ||||
import PersonaClick from '@personaclick/rn-sdk'; ... const pcsdk = new PersonaClick(store_key, stream); |
Initialization parameters
Name | Type | Requirement | Description |
---|---|---|---|
store_key | string | required | The current store key from the PersonaClick account. |
stream | string | required | Data stream code. Alphanumeric string (letters, numbers only). Max length: 16. It can be "ios", "android", or any other string value. It's used to distinguish between mobile apps, websites, and other events sources. |
Example of use
Code Block | ||||
---|---|---|---|---|
| ||||
import PersonaClick from '@personaclick/rn-sdk'; ... const pcsdk = new PersonaClick("c6d2fe5fdca0c8e51d10b07523bc07", "android"); |
Table of Contents | ||||
---|---|---|---|---|
|