android-emulator-webrtc icon indicating copy to clipboard operation
android-emulator-webrtc copied to clipboard

TypeError: _this.auth.authHeader is not a function

Open ghost opened this issue 4 years ago • 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

ghost avatar May 06 '21 23:05 ghost

+1

hasantezcan avatar May 06 '21 23:05 hasantezcan