Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

render error #28

Open
alwaynewbeee opened this issue Jul 21, 2021 · 1 comment
Open

render error #28

alwaynewbeee opened this issue Jul 21, 2021 · 1 comment

Comments

@alwaynewbeee
Copy link

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

@alwaynewbeee
Copy link
Author

 const self_peer = Peer(undefined, { key: 'key',
     host: 'localhost',
     port: 9000,
     path: '/path'})

if i subtract this code, app run well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant