Nikita Kornasevich
Nikita Kornasevich

Reputation: 1

Undefined when import methods from '@videosdk.live/react-native-sdk'

For my RN project, I use '@videosdk.live/react-native-sdk'.When I try to import a method from the library I get undefined. I can't figure out what's going on. I did everything according to the instruction and set it up correctly. The problem is not even in the setup, but I installed the package '@videosdk.live/react-native-sdk', but I can't import methods from it.

import VideoSdk from '@videosdk.live/react-native-sdk'; I used this import but got undefined

Upvotes: 0

Views: 61

Answers (1)

burakkesepara
burakkesepara

Reputation: 316

You can't import VideoSdk. You need to import some other components like:

import {
MeetingProvider,
useMeeting,
useParticipant,
MediaStream,
RTCView,
} from "@videosdk.live/react-native-sdk";

Upvotes: 0

Related Questions