0.2.0 • Published 3 years ago

react-native-overlay-apps v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

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

License

MIT