template for creating a NativeCamera in IOS to be bridged on react-native
NativeCamera module developed in swift
- copy the CameraModuleManager.swift and CameraModuleManager.m file from the ios code folder to your ios folder in the react-native project
- open XCode and add the files CameraModuleManager.swift and CameraModuleManager.m on your project structure
- XCode will prompt to create bridge header .h file
- open SampleProjectCamera-Bridging-Header.h file in ios code folder and copy the imports and paste it to your header project
- copy the folder NativeCameraModule that contains the js file and paste it to your root project
- import component to your app.js and use it
you can view the example on SampleProjectCamera Folder