my App.js file
import {
RTCPeerConnection,
RTCIceCandidate,
RTCSessionDescription,
RTCView,
MediaStream,
MediaStreamTrack,
mediaDevices,
registerGlobals
} from 'react-native-webrtc';
import Peer from "react-native-peerjs"
class App extends Component{
constructor(props){
super(props);
}
componentDidMount(){
const self_peer = Peer(undefined, { key: 'key',
host: 'localhost',
port: 9000,
path: '/path'})
}
render(){
return (
<View>
</View>
);}
};
export default App;
having runing app and occur error
like this
ERROR TypeError: undefined is not an object (evaluating 'this._events = new n()')
This error is located at:
in App (at renderApplication.js:47)
in RCTView (at View.js:34)
in View (at AppContainer.js:107)
in RCTView (at View.js:34)
in View (at AppContainer.js:134)
in AppContainer (at renderApplication.js:40)




if i make mistake, alter me please
my App.js file
having runing app and occur error
like this
if i make mistake, alter me please