app-hooks
TypeScript icon, indicating that this package has built-in type declarations

0.0.0-experimental-0 • Public • Published

app hooks

React hooks for creating native feels for web

Why

Web has been evolving fast. PWA is coming closer and closer to native since Trusted Web Activitiy (TWA). It would be great if we can easily make PWA to feels more like native.

This library is a collection for just that encapsulated in React Hooks.

Outline

  • useShare
    • Hook for OS native share
  • useInstall
    • hook for controlling and displaying PWA installation prompt.
  • usePwa
    • Hook for determine open as web or PWA detection.
  • useMedia
    • Hook for capturing video and audio for Web RTC
  • useCaptureImage
    • Hook for capture image
    • (Best use with useMedia hook)
  • useBadge
    • Hook for controlling app badge

Readme

Keywords

none

Package Sidebar

Install

npm i app-hooks

Weekly Downloads

1

Version

0.0.0-experimental-0

License

MIT

Unpacked Size

128 kB

Total Files

27

Last publish

Collaborators

  • aomkirby123