google / android-emulator-webrtc

Apache License 2.0
131 stars 35 forks source link

TypeError: _this.auth.authHeader is not a function #17

Open ghost opened 3 years ago

ghost commented 3 years ago

Hello my friends. I try to implement this code but it does not work.

import React, { useState } from 'react';
import { Emulator } from "android-emulator-webrtc/emulator";

function App() {
  const [authHeader, ] = useState({authorized: "hCGK/6BaMH+8cas1"});
  return (
    <div>
   <Emulator uri="http://localhost:5554"  auth={authHeader}  />;
    </div>
  );
}

export default App;

image

I got error like this. How can I figured out ?

** And also i find this example

hasantezcan commented 3 years ago

+1