customerio / customerio-expo-plugin

MIT License
11 stars 9 forks source link

What do Env.siteId, Env.apiKey, Env.organizationId refer to? #36

Closed HelgeSverre closed 1 year ago

HelgeSverre commented 1 year ago

In the following example in the documentation on your website here

useEffect(() => {
   const data = new CustomerioConfig()
   data.logLevel = CioLogLevel.debug

   const env = new CustomerIOEnv()
   env.siteId = Env.siteId
   env.apiKey = Env.apiKey
   env.organizationId = Env.organizationId
   //organizationId is used to send in-app messages.
   env.region = Region.US
   //Region is optional, defaults to Region.US. Use Region.EU for EU-based workspaces.

   CustomerIO.initialize(env, data)
}, [])

What do the following refer to, there is no imports specified named Env.

Env.siteId
Env.apiKey
Env.organizationId
HelgeSverre commented 1 year ago

NVM, It was explained in a different page:

The example below assumes that you store environment variables in an env file imported as Env.

https://customer.io/docs/sdk/react-native/in-app/#set-up-in-app-messaging

I'd suggest adding that line to all the documentation pages where it is referenced, to avoid similar confusion.