react-native-camera / react-native-camera-v4

Camera support for React Native
37 stars 2 forks source link

CameraX #4

Open MarcoScabbiolo opened 3 years ago

MarcoScabbiolo commented 3 years ago

CameraX is the recommended by Google and is the best documented Camera API.

It has the same API level support as the Camera2 API so Camera1 should still be around. Some features may be lacking and we would have to cover them with the Camera2 API, some research is needed in this regard.

Right now Camera 1 is the default and Camera2 is opt-in. We will move to CameraX as the default, Camera2 as the fallback for some features (might not even be necessary, research needed) and Camera1 as the legacy version.

MarcoScabbiolo commented 3 years ago

Swift rewrite is on its way and I'm starting to review options and props to make the API more complete and concise across both OS. I need to start this migration to CameraX to maybe entirely discard the Camera2 implementation to avoid unnecessary changes to it and to use the CameraX types, constants and options to compare them with iOS.