New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@layers/amba-react-native

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@layers/amba-react-native

amba SDK for React Native — full 25-namespace surface, AsyncStorage-backed identity persistence, platform-native push via FCM/APNs

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
62
-34.04%
Maintainers
3
Weekly downloads
 
Created
Source

@layers/amba-react-native

React Native SDK for amba. Works in both bare React Native and Expo (Go + bare workflow).

Install

pnpm add @layers/amba-react-native @react-native-async-storage/async-storage
# or:
npx expo install @layers/amba-react-native @react-native-async-storage/async-storage

Quickstart

import { Amba } from "@layers/amba-react-native";

await Amba.configure({ apiKey: "amba_pk_…" });

await Amba.auth.signInAnonymously();
await Amba.events.track("app_opened");

Push registration

import * as Notifications from "expo-notifications";
import { Amba } from "@layers/amba-react-native";

const { data: token } = await Notifications.getDevicePushTokenAsync();
await Amba.push.register(token, Platform.OS === "ios" ? "apns" : "fcm");

Sign in with Apple

import * as AppleAuthentication from "expo-apple-authentication";
import { Amba } from "@layers/amba-react-native";

const credential = await AppleAuthentication.signInAsync({
  requestedScopes: [
    AppleAuthentication.AppleAuthenticationScope.FULL_NAME,
    AppleAuthentication.AppleAuthenticationScope.EMAIL,
  ],
});
if (credential.identityToken) {
  await Amba.auth.signInWithSocial("apple", credential.identityToken);
}

Sign in with Google

import * as Google from "expo-auth-session/providers/google";
import { Amba } from "@layers/amba-react-native";

const [request, response, promptAsync] = Google.useIdTokenAuthRequest({
  clientId: "YOUR_GOOGLE_OAUTH_CLIENT_ID",
});
if (response?.type === "success") {
  await Amba.auth.signInWithSocial("google", response.params.id_token);
}

License

MIT.

FAQs

Package last updated on 14 May 2026

Related posts