aws / aws/amazon-ivs-react-native-player

Invariant Violation: requireNativeComponent: "AmazonIvs" was not found in the UIManager.

Open
#168 6 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
313
Forks
42
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Using the IVSPlayer component at any point in my expo-managed app causes it to break with the error "Invariant Violation: requireNativeComponent: "AmazonIvs" was not found in the UIManager."

**To reproduce**
Steps to reproduce the behavior.
[Snack](https://snack.expo.dev/@tammyado/ivs-rn-player-168?platform=ios)
Install expo
Create a new expo app
expo install 'amazon-ivs-react-native-player'
Add the following code to App.tsx/js
`
import IVSPlayer from 'amazon-ivs-react-native-player';

const URL =
'https://fcc3ddae59ed.us-west-2.playback.live-video.net/api/video/v1/us-west-2.893648527354.channel.DmumNckWFTqz.m3u8';

function App() {
return ;
}
`

**Expected behavior**
It should render a video player from the specified stream.

**Screenshots**
![image](https://github.com/aws/amazon-ivs-react-native-player/assets/73196282/60543aa6-4593-4cde-aea1-ccf98f962997)

**Device (please complete the following information):**
- Simulator or Real Device: Both
- Device: iPhone XR
- OS: iOS 17

**Debug logs**

Invariant Violation: requireNativeComponent: "AmazonIvs" was not found in the UIManager.

This error is located at:
in AmazonIvs
in RCTView (created by View)
in View
in Unknown (created by App)
in App (created by withDevTools(App))
in withDevTools(App)
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
in main(RootComponent), js engine: hermes
at node_modules\react-native\Libraries\Core\ExceptionsManager.js:null in reportException
at node_modules\react-native\Libraries\Core\ExceptionsManager.js:null in handleException
- ... 7 more stack frames from framework internals

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.