Skip to content

render error #28

@alwaynewbeee

Description

@alwaynewbeee

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)

image
image
image
image

if i make mistake, alter me please

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions