How do I fix: TypeError: null is not an object (evaluating 'AgoraRtcChannelModule.prefix')?

Solution 1:

I think you're not using React Native properly.

I'd probably suggest reading the docs and trying the latest version:

  • QuickStart Guide

P.S: Agora React-Native SDK doesn't support Expo.

Solution 2:

The Agora SDK is a native module, I see you're trying to use it with expo. Expo managed workflow doesn't support native modules, you can either eject out to the bare workflow or use the react-native CLI.

Update:
Expo now supports using native modules without ejecting to the bare wofklow with the use of custom development clients, you can learn more about using them with Agora here.