TheWidlarzGroup / react-native-video

A <Video /> component for react-native
https://docs.thewidlarzgroup.com/react-native-video/
MIT License
7.23k stars 2.9k forks source link

[BUG]: Does the component work on the web? #4251

Closed ShaimaaSabry closed 1 month ago

ShaimaaSabry commented 1 month ago

Version

6.4.5

What platforms are you having the problem on?

iOS

System Version

Pixel 8

On what device are you experiencing the issue?

Real device

Architecture

Old architecture

What happened?

Does this component work on the web?

When I launch my app in a browser, I get this error when I add the video component:

Uncaught TypeError: (0 , react_native_1.requireNativeComponent) is not a function at AppEntry.bundle?platform=web&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.routerRoot=app:99352:63 at loadModuleImplementation (AppEntry.bundle?platform=web&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.routerRoot=app:256:7) at guardedLoadModule (AppEntry.bundle?platform=web&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.routerRoot=app:163:14) at metroRequire (AppEntry.bundle?platform=web&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.routerRoot=app:83:75) at AppEntry.bundle?platform=web&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.routerRoot=app:94630:50 at loadModuleImplementation (AppEntry.bundle?platform=web&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.routerRoot=app:256:7) at guardedLoadModule (AppEntry.bundle?platform=web&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.routerRoot=app:163:14) at metroRequire (AppEntry.bundle?platform=web&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.routerRoot=app:83:75) at AppEntry.bundle?platform=web&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.routerRoot=app:94575:35 at loadModuleImplementation (AppEntry.bundle?platform=web&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.routerRoot=app:256:7)

Reproduction Link

repository link

Reproduction

Add react-naive-video to your app. Launch expo start web.

github-actions[bot] commented 1 month ago
Previous bot comment (click to expand) Thank you for your issue report. Please note that the following information is missing or incomplete: - reproduction link Please update your issue with this information to help us address it more effectively. > Note: issues without complete information have a lower priority There is a newer version of the library available. You are using version 6.4.5, while the latest stable version is 6.7.0. Please update to the latest version and check if the issue still exists. > Note: If the issue still exists, please update the issue report with the latest information.
github-actions[bot] commented 1 month ago

Thank you for your issue report. Please note that the following information is missing or incomplete:

Please update your issue with this information to help us address it more effectively.

Note: issues without complete information have a lower priority

There is a newer version of the library available. You are using version 6.4.5, while the latest stable version is 6.7.0. Please update to the latest version and check if the issue still exists.

Note: If the issue still exists, please update the issue report with the latest information.

freeboub commented 1 month ago

no, not yet, see: https://github.com/TheWidlarzGroup/react-native-video/issues/2719