AgoraIO-Extensions/react-native-agora

How can I load the native SDK's into an expo project?

Closed this issue · 3 comments

I know I have to expo eject, but then what?

I think you can run expo project at a physical device but it does not support web because it can not load the native plugin.

1.Expo only supports the native library on bare workflow.
a.Init Project —— run expo init --template bare-minimum and select the bare workflow.
b.Existing Apps with Managed Workflow —— run expo eject to switch to the bare workflow.
2.run npm i react-native-agora
3.run npx react-native run-ios npx react-native run-android to run application.

With the release of Expo SDK 42, it’s now possible to customize the native runtime of your apps using custom development clients, this means that you can now use libraries that contain native code (like this one) with Expo without having to resort to the bare workflow.

You can read this blog to learn how to build a video calling app with Agora using Expo custom development clients.