Device APIs
JavaScript that opens your camera. Legally.
▶ the lesson · ~35s · narrated · tap for sound
the intro
Devices offer capabilities web code never had: camera, GPS, storage, sensors, notifications. React Native exposes them through libraries, and even the browser has grown a set of its own. The rule: ask for permission with a reason, at the moment you need it.
fun fact ✦
The Vibration API exists in web browsers. Your website can buzz. Use this power responsibly.
the docs
quick hits about Device APIs
15-second answers · interviews, tips, trivia & hidden gems
📚 tutorial
Sensors in one hook
🔧 useful
Ask WHY before asking for permission
💎 deep
Native share sheet from web code
💎 deep
Work when the app is closed