Skip to content

Module that allows entering or exiting Autonomous Single App Mode from a react-native application

Notifications You must be signed in to change notification settings

verkada/react-native-asam

 
 

Repository files navigation

react-native-asam

This is a module that allows entering or exiting Autonomous Single App Mode from a react-native application Currently there is only IOS support.

Getting started

$ yarn add react-native-asam

Mostly automatic installation

$ react-native link react-native-asam

Manual installation

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-asam and add Asam.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libAsam.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Usage

import { enterSingleAppMode, exitSingleAppMode } from 'react-native-asam';

// To enter single app Mode
enterSingleAppMode();

// To exit single app Mode
exitSingleAppMode();

// To check apps current mode using async/await
const isEnabled = await isSingleAppModeEnabled();

About

Module that allows entering or exiting Autonomous Single App Mode from a react-native application

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 57.1%
  • Ruby 30.2%
  • JavaScript 12.7%