Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[expo] Cannot read properties of undefined (reading 'prefix') #478

Closed
kyooryoo opened this issue Feb 18, 2022 · 3 comments
Closed

[expo] Cannot read properties of undefined (reading 'prefix') #478

kyooryoo opened this issue Feb 18, 2022 · 3 comments

Comments

@kyooryoo
Copy link

Replicate the issue by adding the following code block to a new expo project at https://snack.expo.dev/

import RtcEngine, {
  ChannelProfile,
  ClientRole,
  RtcEngineContext,
  RtcLocalView,
  RtcRemoteView,
} from 'react-native-agora';

截屏2022-02-18 上午8 43 19

截屏2022-02-18 上午8 44 28

Run android emulator returns the same error.

I guess the issue on react-native-agora source code.
Please refer to Resolving The TypeError: Cannot Read Property of Undefined in JavaScript which I hope could be helpful.

@LichKing-2234
Copy link
Collaborator

pls refer to #188

@EkaanshArora
Copy link
Collaborator

@kyooryoo since react-native-agora package uses native code, it cannot be use with expo go or snack. You can either use the bare workflow as suggested or you can use custom development clients with the managed workflow. I have described how to do this using this package and the UIKit here.

@kuriel-trivu
Copy link

kuriel-trivu commented Jun 20, 2022

Expo now supports native modules with the new EAS Build, when adding this plugin / package, there are errors:

image

The team must see:

https://docs.expo.dev/guides/config-plugins/#creating-a-plugin

To make this repo Expo EAS plugin compatible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants