Complete guide to setting up and integrating the official nativine NPM package in your web application for native hardware access.
The Nativine JavaScript Bridge provides short, clean, Promise-based functions to access native mobile hardware across Android & iOS with zero boilerplate.
Access native mobile features (Haptics, Biometrics, GPS, Storage, Social Auth) directly from React, Next.js, Vue, or TypeScript with complete type safety.
Import nativine and invoke clean, short functions directly:
import nativine from 'nativine';
// 1. Trigger haptic feedback
nativine.haptics.feedback('medium');
// 2. Enable screenshot protection
nativine.screenshot.setProtection(true);
// 3. Read device phonebook contacts
const contacts = await nativine.contacts.getAll();