Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@bothrs/capacitor

Package Overview
Dependencies
Maintainers
7
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bothrs/capacitor

Contains reuseable hooks and components for a Capacitor project

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
7
Created
Source

@bothrs/capacitor

Reuseable hooks and components for Capacitor projects.

Getting started

yarn add @bothrs/capacitor

Contents

Hooks

useAppState

Get info about the current app state

useCountryCodes

Get a localised list of ISO3166 country codes

useEdgeInsets

Get edge insets based on orientation and device notch In order for this hook to work, you have to import the 'edge-insets.css' file in your project.

useOrientation

Hook to determine your device orientation

useStatusBarStyle

Hook to set your status bar style

useToast

Hook to create success and error toasts

Components

AppInfo

Component to render the current app version, environment and authenticated HB user

NativePlatform

Wrapper that renders its children only in a native environment

NetworkConnected

Wrapper that renders a fallback if network connection is lost

WebPlatform

Wrapper that renders its children only in a web environment

FAQs

Package last updated on 17 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts