Skip to content

Nilsantos/react-native-overlay-apps

Repository files navigation

react-native-overlay-apps

React native library to writing text over other applications

Installation

npm install react-native-overlay-apps

Usage

import OverlayApps from 'react-native-overlay-apps';

const startOverlay = async () => {
  const hasPermission = await OverlayApps.askPermission();
  if (hasPermission) {
    OverlayApps.showOverlay();
    OverlayApps.setText('Hello World');
  }
};

const stopOverlay = () => {
  OverlayApps.hideOverlay();
};

A full code example can be found at https://github.com/Nilsantos/react-native-overlay-apps/blob/master/example/src/App.tsx

Contributing

Nilsantos
Nilsantos
Mdiaas
Mdiaas

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT