taskrabbit / react-native-zendesk-chat

React Native Wrapper around Zendesk Chat v2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Component Exception: null is not an object

binhxn opened this issue · 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?

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.

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!

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)

Any Luck? @binhxn

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