Ecosystem
React Native VisionCamera Alternative for Kotlin Multiplatform
Move a React Native VisionCamera screen to KMP Vision Camera and check permissions, capture, orientation and frame processing on iOS and Android.
On this page
KMP Vision Camera is an independent Kotlin Multiplatform port of React Native VisionCamera V5. It targets Android and iOS, with a Kotlin camera engine and optional Compose UI. The project is in early development. Check the release and the capabilities of the devices your app supports before replacing a production camera flow.
Map the camera features you use#
| If your screen uses | Start with | What to verify |
|---|---|---|
| Camera preview and a front or back device | The Compose Camera and device selection helpers |
Permission denial, switching lenses and resuming after backgrounding. |
| Photo or video capture | The corresponding camera output | Orientation, mirroring, output format, audio permission if you record sound, and what the next screen receives. |
| Frame processing or barcode scanning | A frame output or the barcode module | Which processors need new Kotlin code, frame formats, throughput and scan results on both platforms. |
See the KMP Vision Camera docs for dependencies, platform permissions and working API examples.
Migrate one capture flow#
- Write down what the current route receives and what it returns after capture or cancellation. Keep the existing React Native route and camera available while the Compose version is under test.
- Start with preview, permission handling and one photo on a physical Android device and iPhone. Check the resulting image in the existing downstream flow before moving extra outputs or add-ons.
- Host the new Compose screen in the same route through RN2KMP. Pass any result through a supported component event, and keep the React Native route responsible for how the app opens and closes the camera.
- Test permission denial, returning from settings, rotation and backgrounding. Confirm the previous screen receives the same result and that the camera releases when the route closes.
See Navigation and Fabric for the host route and event pattern, and the migration guide for switching back to the original screen.