mrousavy / react-native-vision-camera

📸 A powerful, high-performance React Native Camera library.
https://react-native-vision-camera.com
MIT License
6.64k stars 983 forks source link

💭 How to create boilerplate for frame processors? #2810

Closed zzz08900 closed 2 weeks ago

zzz08900 commented 3 weeks ago

Question

How to generate a boilerplate similar to those frame processors already floating around? They all have an android folder, an ios folder and an example folder. The docs say we should run npx vision-camera-plugin-builder@latest {platformName} but then it asks for the location of Android Manifest and .xcodeproj file, which, to be honest I don't have any.

Are we supposed to create a Android project using Android Studio and an iOS project using XCode and then run npx vision-camera-plugin-builder@latest {platformName} ? If that's the case what preset should be chosen during set up process of the said projects?

What I tried

No response

VisionCamera Version

2.16.7 with in-house patches, works like a charm

Additional information

zzz08900 commented 3 weeks ago

I kind set through the whole V2 -> V3 transition and are now evaluating how hard it is to do a V2 -> V4 transition. So if someone can point me to a boilerplate for frame processor V4 that would be great.

xulihang commented 2 weeks ago

I have a blog which may help: https://www.dynamsoft.com/codepool/react-native-vision-camera-cropper-plugin.html

zzz08900 commented 2 weeks ago

So basically npx create-react-native-library@latest lays down the boilerplate for you.

I just tried it, and it works wonders.

Thanks man, that helped a lot.