Skip to content
Back to skills

Native Modules

ASecurity

Guides native module integration, including when to bridge native SDKs and biometric authentication; use when integrating device APIs, bridging to native SDKs, or debugging platform-specific behavior.

  • 19 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 19, 2026
ai-agentstypescriptreactdebuggingapi

Works with

  • api

Security analysis

A100/100

Scanned October 19, 2026

npx -y skills add sawrus/agent-guides --skill native-modules --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Native Modules?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Native Modules
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sawrus-native-modules/badge)](https://www.skillsdirectory.com/skills/sawrus-native-modules)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: native-modules
description: "Guides native module integration, including when to bridge native SDKs and biometric authentication; use when integrating device APIs, bridging to native SDKs, or debugging platform-specific behavior."
---

# Skill: Native Module Integration

## When to load

When integrating device APIs, bridging to native SDKs, or debugging platform-specific behavior.

## When to Use Native Modules

```
Use Native Module:
- Device hardware (camera, accelerometer, NFC, Bluetooth)
- Cryptographic operations (device secure enclave)
- Computation-intensive tasks (image processing, on-device ML)
- Third-party SDKs without JS wrapper

Stay in JS/React Native:
- UI rendering and interactions
- Network requests
- State management
- Business logic not requiring device APIs
```

## Biometric Authentication

```typescript
import ReactNativeBiometrics from 'react-native-biometrics';

export async function authenticateWithBiometrics(): Promise<boolean> {
  const rnBiometrics = new ReactNativeBiometrics({ allowDeviceCredentials: true });
  const { biometryType } = await rnBiometrics.isSensorAvailable();
  if (!biometryType) return authenticateWithPin();

  const { success } = await rnBiometrics.simplePrompt({
    promptMessage: biometryType === 'FaceID' ? 'Confirm with Face ID' : 'Confirm with fingerprint'
  });
  return success;
}
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.