Closed umangloria closed 2 months ago
@umangloria hey mate, got this as well. Have you fixed it?
nvm, I've fixed it by setting ["react-native-appsflyer", {}]
in app.json -> plugins field. (before that I has just "react-native-appsflyer"
nvm, I've fixed it by setting
["react-native-appsflyer", {}]
in app.json -> plugins field. (before that I has just"react-native-AppsFlyer"
Yes, there should be no "react-native-appsflyer"
entry directly, I didn't notice that it has been added by default, I think this should not be added this way by default or it should be added properly automatically, In my case I didn't realize this until I started comparing all the changes in the working branch.
Report
I followed this guide: https://dev.appsflyer.com/hc/docs/rn_expoinstallation after adding the plugin information on app.json file when I tried to run the app it seems like npx expo prebuild --clean or yarn run ios commands are failing now. the error we are getting:
CommandError: Cannot read properties of undefined (reading 'shouldUseStrictMode')
Plugin Version
"react-native-appsflyer": "^6.14.3", "expo": "^50.0.17",
On what Platform are you having the issue?
both (expo managed RN project)
What did you do?
npx expo install react-native-appsflyer and other steps mentioned here: https://dev.appsflyer.com/hc/docs/rn_expoinstallation
What did you expect to happen?
App should run fine on both android and iOS without any build/runtime issues
What happened instead?
getting this error (CommandError: Cannot read properties of undefined (reading 'shouldUseStrictMode')) during following commands:
Please provide any other relevant information.
this is the first time we are trying to use this package. Also as you can see we are using latest expo as well.