react-native-deepar icon indicating copy to clipboard operation
react-native-deepar copied to clipboard

Whenever I run example app or integrate Colored Vertical Strips on Shown On the screen

Open simonpojok opened this issue 1 year ago • 4 comments

Description: Currently am trying to experiment with this SDK, I created a sample app using expo and when I run the app I get, please not that this also happens with the demo app shared under this package

import StackScreenContainer from "@components/containers/stack_screen/StackScreenContainer";
import React, { useEffect, useRef } from "react";
import DeepAR, {
  Camera,
  CameraPositions,
  IDeepARHandle,
} from "react-native-deepar";

const ANDROID_KEY =
  "51f773adc6dc26478e45344c5949fbadf58ef3fa91627e339d148607ddffa6f166e16b5e003c124c";

export default function DeepARCameraScreen() {
  const deepARRef = useRef<IDeepARHandle>(null);

  useEffect(() => {
    (async () => {
      const cameraPermission = await Camera.getCameraPermissionStatus();
      const microphonePermission = await Camera.getMicrophonePermissionStatus();
      console.log("Permissions", cameraPermission, microphonePermission);
    })();
  }, []);

  return (
    <StackScreenContainer>
      <DeepAR
        position={CameraPositions.BACK}
        ref={deepARRef}
        apiKey={ANDROID_KEY}
        style={{ flex: 1 }}
        onInitialized={() => {
          console.log("initializations");
        }}
        onError={(message, code) => {
          console.log("Error Message", message);
        }}
      />
    </StackScreenContainer>
  );
}

Screenshot_2023-04-04-10-21-02-108_com pkbnd app dev

simonpojok avatar Apr 04 '23 07:04 simonpojok

I don't know why this issue happened but can you try latest version (0.11.0) of the library? There is some major changes in the latest version, i hope this issue resolves. @simonpojok

ridvanaltun avatar Jun 22 '23 01:06 ridvanaltun

Hey @ridvanaltun @simonpojok Facing the same issue. Did you found any solution?

AkshayBhimani avatar Nov 10 '23 03:11 AkshayBhimani

Same issue.

jsfit avatar Dec 13 '23 09:12 jsfit

For me changing to another android device worked as a temporary solution.

AkshayBhimani avatar Jan 10 '24 07:01 AkshayBhimani