react-native-zendesk-chat icon indicating copy to clipboard operation
react-native-zendesk-chat copied to clipboard

Component Exception: null is not an object

Open binhxn opened this issue 5 years ago • 5 comments

Hello,

I'm initializing the app using Expo bare workflow and followed the Getting Started guide. As soon as I started the app, I got this screen. Seems like the issue stems from ZendeskChat.init, and not ZendeskChat.startChat:

Screen Shot 2020-10-15 at 3 53 53 PM

Main dependencies:

"expo": "~39.0.2",
"react-native": "~0.63.2",
"react-native-zendesk-chat": "^0.4.0"

Cocoapods version: 1.9.3

I'm unsure where to go from here. Any ideas?

binhxn avatar Oct 15 '20 22:10 binhxn

Hi @binhxn! Have you ejected your expo or not?

react-native-zendesk-chat has native dependencies, so I believe you need to be ejected.

Unfortunately, we do not use expo, so you may need to use their forums to ask for expo specific advice.

fbartho avatar Oct 16 '20 01:10 fbartho

Hi @fbartho I'm using Expo's Bare Workflow so it's essentially ejected from the Managed Workflow. Hmm, I have a feeling it may be due to some other local dependency, but I'll continue digging around and reach out in the Expo forums, if needed. Feel free to close the issue!

binhxn avatar Oct 16 '20 03:10 binhxn

The error message suggests the NativeModule might be missing, which is a pretty common issue for people working with expo

(I've seen reports of this relatively regularly, across multiple open source projects)

fbartho avatar Oct 16 '20 04:10 fbartho

Any Luck? @binhxn

shanusingh3 avatar Oct 22 '20 08:10 shanusingh3

@shanusingh3 Not yet, I haven't had the time to revisit this issue =/

binhxn avatar Oct 22 '20 16:10 binhxn