Expo modules API

Please provide the following:

  1. SDK Version: 49
  2. Platforms(Android/iOS/web/all): Android
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

Hey all,

I am currently working on a new native library using expo modules. I would like to create a video View, with a ref to be able to play and pause the video when a user interacts with the app.
It is my understanding that using AsyncFunction, in the View declaration, we can create such function. However on the react native side, I don’t understand how we can attach a ref to the native view, especially in typescript. Should I implement a Class component? If yes, how could I do that?

Thanks a lot to anyone answering :slight_smile:

Anat

Hi @anatoleblanc

If you don’t get an answer here, ask on the expo modules channel on Expo’s Discord server.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.