-
Notifications
You must be signed in to change notification settings - Fork 318
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
[BUG]: type VideoPlayerRef Import Not Available in react-native-video-player #209
Comments
Previous bot comment (click to expand)Previous bot comment (click to expand)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.
There is a newer version of the library available. You are using version 0.15.0, while the latest stable version is 6.8.2. Please update to the latest version and check if the issue still exists.
|
Previous bot comment (click to expand)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.
There is a newer version of the library available. You are using version 0.15.0, while the latest stable version is 6.8.2. Please update to the latest version and check if the issue still exists.
|
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.
There is a newer version of the library available. You are using version 0.15.0, while the latest stable version is 6.8.2. Please update to the latest version and check if the issue still exists.
|
do you have installed react-native-video library? |
@moskalakamil Yes |
I have a similar issue. We've been using react-native-video, it's been implemented for years, we just want better video controls in full screen on Android. I added this package, and I have: |
Version
0.15.0
What platforms are you having the problem on?
iOS, Android
On what device are you experiencing the issue?
Real device
Architecture
New architecture
What happened?
I am using the react-native-video-player library in my project, and I encountered an issue with the VideoPlayerRef type. According to the example in the documentation, it is imported as:
import VideoPlayer, { type VideoPlayerRef } from 'react-native-video-player';
However, the type VideoPlayerRef is not available in the library, and it causes a red error in my IDE.
Reproduction
Steps to Reproduce:
Install the library: npm install react-native-video-player
Import VideoPlayer and type VideoPlayerRef as per the documentation example:
import VideoPlayer, { type VideoPlayerRef } from 'react-native-video-player';
Observe that the IDE (e.g., VSCode) highlights an error indicating VideoPlayerRef is not exported.
Expected Behavior:
The type VideoPlayerRef should be available for import as shown in the documentation, allowing proper type-checking and usage with useRef.
Actual Behavior:
An error occurs because type VideoPlayerRef is not exported by the library.
Workaround:
Currently, I am unable to use the VideoPlayerRef type, and there is no clear guidance on how to handle this.
The text was updated successfully, but these errors were encountered: