Replies: 8 comments
-
Hmm... can you try to use |
Beta Was this translation helpful? Give feedback.
-
I have tried this also before but it did not work My pod file
|
Beta Was this translation helpful? Give feedback.
-
Do you have podspec for your native module ? |
Beta Was this translation helpful? Give feedback.
-
@KrzysztofMoch |
Beta Was this translation helpful? Give feedback.
-
Just to update I am able to import as like below in my swift class and can access RCTVideo making it as public import react_native_video private var _video:RCTVideo? |
Beta Was this translation helpful? Give feedback.
-
@venky145 I will have to do something similar very soon
Than in your plugin, you need to access to the singleton and registerAnalyticPlugin(YourAnalyticPluginInterface). Do it make sens on your side ? |
Beta Was this translation helpful? Give feedback.
-
@venky145 I just create a plugin system here: #3909 |
Beta Was this translation helpful? Give feedback.
-
plugins system should resolve this - I will close this |
Beta Was this translation helpful? Give feedback.
-
Version
v6 (Beta)
What platforms are you having the problem on?
No response
Architecture
Old architecture
What happened?
I'm attempting to access the AVPlayer instance from RCTVideo in my local Swift file in order to retrieve some parameters from the AVPlayer. However, I'm facing difficulties in importing the react-native-video module into my Swift file and accessing the AVPlayer instance.
"import RCTVideo"
Steps to Reproduce:
Attempt to import react-native-video into a local Swift file.
Try to access the AVPlayer instance from RCTVideo in the Swift file.
Expected Behavior:
I expect to be able to import the react-native-video module into my Swift file and access the AVPlayer instance without any issues.
Actual Behavior:
I'm unable to import react-native-video into my Swift file and consequently unable to access the AVPlayer instance.
Reproduction
Unable to import RCTVideo to my own swift file
Beta Was this translation helpful? Give feedback.
All reactions