apivideo/api.video-reactnative-live-stream

on running in expo it gives error of Invariant Violation: requireNativeComponent: "ReactNativeLiveStreamView" was not found in the UIManager.

jitanuswara opened this issue · 2 comments

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:
1.
2.
3.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

expo is not supported yet but you can use yarn.

Please fill properly the issue templates.

It looks like you havent built your dev client with this package installed.

For future reference.
The package works fine with expo. No adjustment needed.
Expo have made EAS. Which makes it very easy to include any react native dependency into your project.
Basically they have a package called expo-dev-client which is basically just the expo go app, but during building it will include any native code installed in your dependencies.

Meaning to install this package with expo.
Make sure you know how to use EAS.

  1. yarn add @api.video/react-native-livestream
  2. Create a component using react-native-livestream
  3. eas build --profile development
    Now you will get a "custom" expo go app which has included the native code of this package.