cmaycumber / config-plugin-react-native-intercom

Expo plugin for adding @intercom/react-native-intercom using expo config plugins
75 stars 39 forks source link

Cannot destructure property 'iosApiKey' of 'props' as it is undefined. #27

Open DjordjePetrovic opened 2 years ago

DjordjePetrovic commented 2 years ago

Getting -> Cannot destructure property 'iosApiKey' of 'props' as it is undefined.

With the latest version of the lib.

Installed with yarn add config-plugin-react-native-intercom // also tried expo install

added keys to app.json

and when I run the project lib complains about missing prop

UPDATE: it appears it won't read the config from app.json file, but if I added it inside app.config.js everything works fine

Thanks!

cmaycumber commented 2 years ago

Thanks for opening this, I'll take a look into it and see If I can find out more about the issue!

reena-amakein commented 2 years ago

Can you please tried with this I resolved using below code in app.json file. "plugins": [ [ "config-plugin-react-native-intercom", { "iosApiKey": "", "androidApiKey": "", "appId": "", "iosPhotoUsageDescription": "Upload to support center" } ] ]

AleksandarBisevac commented 2 years ago

@cmaycumber @DjordjePetrovic Hi, I tried to move the logic to the app.config.js but still got the same error as you have. Could you share your solution maybe? Thanks

enagorny commented 1 year ago

@DjordjePetrovic @AleksandarBisevac if it is still relevant could you please share your full plugins section(replacing keys) either from app.json or app.config.js?