google/android-emulator-webrtc

TypeError: _this.auth.authHeader is not a function

isikerenalp opened this issue · 1 comments

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