title: Failed to bind EAGLDrawable in WebRTC react native
body: <p>I'm going to create video chat through webRTC using React native iOS. For that I've written react native code for iOS. It's asking me for camera access but after that it fails to load video and throws a warming message, </p>
  
  <pre><code>Failed to bind EAGLDrawable: &lt;CAEAGLLayer: 0x16d50e30&gt; to GL_RENDERBUFFER 1
  Failed to make complete framebuffer object 8cd6
  </code></pre>
  
  <p>I know above warning is due to not getting view to camera for rendering video frames. But i don't know what wrong with my react code which fails to give it frame, my code is following,</p>
  
  <pre><code>import React, {
    AppRegistry,
    Component,
    StyleSheet,
    Text,
    View
  } from 'react-native';
  
  var WebRTC = require('react-native-webrtc');
  var {
    RTCPeerConnection,
    RTCMediaStream,
    RTCIceCandidate,
    RTCSessionDescription,
    RTCView
  } = WebRTC;
  
  
  var container;
  var configuration = {"iceServers": [{"url": "stun:stun.l.google.com:19302"}]};
    var pc = new RTCPeerConnection(configuration);
    navigator.getUserMedia({ "audio": true, "video": true }, function (stream) {
      pc.addStream(stream);
    });
    pc.createOffer(function(desc) {
      pc.setLocalDescription(desc, function () {
      // Send pc.localDescription to peer
    }, function(e) {});
    }, function(e) {});
    pc.onicecandidate = function (event) {
    // send event.candidate to peer
  };
  
  var RCTWebRTCDemo = React.createClass({
    getInitialState: function() {
      return {videoURL: null};
    },
    componentDidMount: function() {
      container = this;
    },
    render: function() {
      return (
        &lt;View style={styles.container}&gt;
          &lt;RTCView streamURL={this.state.videoURL}/&gt;
        &lt;/View&gt;
      );
    }
  });
  
  const styles = StyleSheet.create({
    container: {
      flex: 1,
      justifyContent: 'center',
      alignItems: 'center',
      backgroundColor: '#F5FCFF',
    },
    welcome: {
      fontSize: 20,
      textAlign: 'center',
      margin: 10,
    },
    instructions: {
      textAlign: 'center',
      color: '#333333',
      marginBottom: 5,
    },
  });
  
  AppRegistry.registerComponent('RCTWebRTCDemo', () =&gt; RCTWebRTCDemo);
  </code></pre>
  
  <p>I'm interested to know where i'm wrong?</p>