Closed dennisdelima21pe closed 1 year ago
Hi @dennisdelima21pe
Did you install the customerio-reactnative
package?
Hi @xtreem88 !
I work with @dennisdelima21pe . We did install customerio-reactnative
package.
What version of customerio-reactnative
do you have installed?
Expo:47.0.0 customerio-expo-plugin : ^1.0.0-beta.10 customerio-reactnative : ^2.4.2 @xtreem88
o erro acontece quando inicializo o sdk import React, {useEffect} de 'react'; import { CustomerIO, CustomerIOEnv, Region } from 'customerio-reactnative';
app const = () => {
useEffect(() => { const env = new CustomerIOEnv() env.siteId = "YourSiteId" env.apiKey = "YourAPIKey"
// A região é opcional, o padrão é Region.US. // Use Region.EU para espaços de trabalho baseados na UE. env.region = Region.US
CustomerIO.initialize(env) }, []) IN App.js @xtreem88
@dennisdelima21pe Can you try and delete your node_modules
folder and run npm install
again?
Yes, I did that, but the error still persists. Before the pre build, when initializing the sdk, the error occurs, a print below the error that is appearing.
Thanks for sharing the full error message, @dennisdelima21pe.
When you say, "Before the pre build, when initializing the sdk, the error occurs,", does that mean that you have not yet run expo prebuild --clean
? If you have not, I suggest running that, running pod install --project-directory=ios
, and then running the app again.
If you see an error again, it would be helpful to see your package.json
, ios/Podfile
, ios/Podfile.lock
, and app.json
.
You can send those files to win@customer.io
instead of in this public issue if it's helpful.
Closing due to inactivity. If you're still encountering problems, feel free to comment back on issue or send a support request to win@customer.io
.
I'm using expo managed, but when I do all the installation and configuration steps according to the documentation, the following error appears Error: The package 'customerio-reactnative' doesn't seem to be linked. Make sure: