
Build a real document scanner app for iOS and Android with React Native, and learn how scanning actually works under the hood. You'll start with a ready-made native scanner to get a working app fast. Then you'll write your own document detection with OpenCV, step by step.
How this course works
Most tutorials stop at "install a library and call it." This course goes two steps further.
First, build it fast. You'll add react-native-document-scanner-plugin, which uses Google ML Kit on Android and Apple VisionKit on iOS. Around it, you'll build a complete app: onboarding, multi-page documents, local storage, and file saving.
Then, build the detection yourself. You'll learn the basics of computer vision in a small OpenCV playground. Then you'll write your own detector: find the document's edges, find its four corners, and flatten it with a perspective transform.
Every step is a project step. There are no slides-only lectures. You also get:
A GitHub source code snapshot for each lecture
Starter and final projects for the OpenCV playground
A Google Colab notebook for edge detection experiments
Sample documents to scan, image assets, and a VS Code snippet file
Bonus React and TypeScript refresher sections
What you'll build
App 1: a plugin-powered scanner
Onboarding screens with a swipeable FlatList, page indicators, and Skip and Next buttons
Document scanning with the native scanner UI, plus a gallery fallback for the iOS simulator
Multi-page documents: add pages, keep their order, rename, and delete
A home screen with a document card grid
Local data with MMKV and image files saved to private storage with react-native-fs
App 2: your own OpenCV scanner
An image pipeline: grayscale, blur, Canny edge detection, dilation, and contours
Automatic corner detection and cropping with getPerspectiveTransform and warpPerspective
A manual corner editor with draggable handles, for when auto-detection misses
An animated scanning indicator built with Reanimated
Tools you'll use
React Native CLI (0.87) with TypeScript
react-native-document-scanner-plugin and react-native-fast-opencv
React Navigation, React Context, MMKV, react-native-fs
Reanimated and React Native Gesture Handler
Android Studio, Xcode, and VS Code
Who's teaching
I'm Niraj Dhungana, a self-taught developer and instructor. Since 2022, over 8,000 students have taken my 7 Udemy courses (4.4 average rating across 710 reviews). Four of those courses are about React Native. I teach by building, and I explain each piece before we use it.
Ready to build?
By the end, you'll understand all the ins and outs of react native and how you can build a real world mobile application using it. Enroll now and scan your first document in the first few sections.