Invariant Violation: View config getter callback for component `RTCVideoView` must be a function (received `undefined`).
See original GitHub issueI am trying to use react-native-web-rtc in project. I have done all the setup for ios
The code that we are using in “SomeView” component mentioned in error message
import {
mediaDevices,
MediaStream,
RTCIceCandidate,
RTCPeerConnection,
RTCView,
} from 'react-native-webrtc';
const SomeView = () => {
//... component logic
return (
<View style={s.LocalVideoStream}>
{localStream && (
<RTCView
style={s.RTCView}
streamURL={localStream && localStream.toURL()}
/>
)}
</View>
);
}
i am getting this error
Invariant Violation: View config getter callback for component `RTCVideoView` must be a function (received `undefined`).
This error is located at:
in RTCVideoView (at SomeView.react.tsx:96)
in RCTView (at View.js:34)
Expected behavior
component to not throw this error?
Observerd behavior
This error in console when trying to use RCTView
Invariant Violation: View config getter callback for component `RTCVideoView` must be a function (received `undefined`).
Steps to reproduce the problem
- install library
- run pod install from ios
- build debug build for simulator from xcode
i have tried bunch of stuff like
pod install
npx pod-install
react-native link react-native-webrtc
- clear watchman cache, clear pod cache
this issue still persist, i think library is not able to identify nativeModule,
Haven’t tried this with android, this issue is when working with ios
This is similar to issue we have with react-native-linear-gradient library
https://github.com/react-native-linear-gradient/react-native-linear-gradient/issues/538
Platform information
- React Native version: 0.64.2
- Plugin version:
- OS: iOS
- OS version: 15.4.1
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
view config getter callback for component 'div' must be a ...
Error is: Invariant Violation: view config getter callback for component 'form' must be a function (received 'undefined').
Read more >React Native: View config getter callback for component must ...
Invariant Violation : View config getter callback for component `div` must be a function (received `undefined`). Make sure to start component names with...
Read more >invariant violation: view config getter callback for component `input ...
it is throwing me the following error: Invariant Violation: View config getter callback for component a must be a function (received undefined )....
Read more >view config getter callback for component 'div' must be a ...
Coding example for the question view config getter callback for component 'div' must be a function (received 'undefined'). Make sure to start component...
Read more >Invariant violation : View config for component `textarea` must ...
Error - Invariant violation : View config for component `textarea` must be a function(received undefined). Make sure to start component ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
i am so confused about this problem
@pankajvaghela did you solve this issue?