Git Product home page Git Product logo

Comments (9)

lsps9150414 avatar lsps9150414 commented on September 26, 2024 3

Update

It worked after running eas build again AFTER installing react-native-worklets-core.
but I'm still unsure why it is needed in the first place without using frame processing.


Hey I am running into the same situation seeing the Error: react-native-worklets-core is not installed! following the Expo installation steps on https://react-native-vision-camera.com/docs/guides

I'm simply trying to render the camera without using the frame processing so I don't think I need to install react-native-worklets-core neither does the installation guide mentioned it.

I'm confused, so is react-native-worklets-core required anyway?
What's worse for me is that the error persist even after I installed it πŸ˜…

Here are my dependencies:

"react": "18.2.0",
"react-native": "0.72.6",
"expo": "^49.0.21",
"react-native-vision-camera": "^4.0.4",
"react-native-worklets-core": "^1.3.3",
"react-native-reanimated": "^3.6.1",

my babel.config:

module.exports = function (api) {
  api.cache(true);
  return {
    presets: ["babel-preset-expo"],
    plugins: [
      "expo-router/babel",
      "react-native-reanimated/plugin",
      ["react-native-worklets-core/plugin"],
    ],
  };
};

I am testing on a real iOS device with a Expo dev build that I built after installing react-native-vision-camera but the react-native-worklets-core is installed after. I did restart my metro tho.

from react-native-vision-camera.

Sharf8351 avatar Sharf8351 commented on September 26, 2024 1

@Tymofiev I'm facing the same issue and using react native v 0.72.6 how did you fix it? Can you please help me? Thanks in advance :)

from react-native-vision-camera.

mrousavy avatar mrousavy commented on September 26, 2024 1

It does not require react-native-worklets-core - try latest VisionCamera. That builds perfectly fine without Worklets.

from react-native-vision-camera.

Tymofiev avatar Tymofiev commented on September 26, 2024 1

Just tested and seems to work without react-native-worklets-core on "react-native": "0.73.6" with "react-native-vision-camera": "4.0.4".

from react-native-vision-camera.

mrousavy avatar mrousavy commented on September 26, 2024
  1. Why did you not post your react-native-worklets-core version?
  2. You need react-native-worklets-core 1.x.x for V4, and 0.x.x for V3 (you are on V4, so react-native-worklets-core 1.x.x)
  3. Might also be a good idea to upgrade your RN version to 0.72 or 0.73, but 0.71 should be good.

from react-native-vision-camera.

Tymofiev avatar Tymofiev commented on September 26, 2024

@mrousavy I did not add react-native-worklets-core version because I am not using any frame processors and don't have it installed, is that dependency required anyway?

The RN upgrade is coming soon, but I thought it might be helpful information if it's not working with older versions for some reason...

ps: thanks for answering so fast!

from react-native-vision-camera.

mrousavy avatar mrousavy commented on September 26, 2024

Ah okay, well I didn't know if you are using FPs or not because you chose to ignore the required "reproduceable code" section:
image

from react-native-vision-camera.

Tymofiev avatar Tymofiev commented on September 26, 2024

@mrousavy I am so sorry for that! I just wasn't sure what to put in there since it's pretty basic rendering of Camera component with just a few props. Updated the description.

PS: btw I think there is a typo in Reproduceable section title

from react-native-vision-camera.

Tymofiev avatar Tymofiev commented on September 26, 2024

@Sharf8351 I was just about to test in on the new version of RN... but if you are saying it still requires react-native-worklets-core then I don't know how to fix it right now other than adding that package...

from react-native-vision-camera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.