react-native-vision-camera icon indicating copy to clipboard operation
react-native-vision-camera copied to clipboard

💭 How to create boilerplate for frame processors?

Open zzz08900 opened this issue 1 year ago • 1 comments

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 avatar Apr 26 '24 12:04 zzz08900

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.

zzz08900 avatar Apr 26 '24 13:04 zzz08900

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

xulihang avatar Apr 28 '24 10:04 xulihang

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.

zzz08900 avatar Apr 28 '24 13:04 zzz08900