Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

@nuskin/mobile-hooks

Package Overview
Dependencies
1
Maintainers
5
Versions
1
Issues
File Explorer

Advanced tools

@nuskin/mobile-hooks

undefined

    0.0.1latest

Version published
Maintainers
5
Yearly downloads
5,972

Weekly downloads

Readme

Source

Hooks

Collection of useful hooks including:

  • useColorScheme
  • useClipboard

Installation

yarn add @nuskin/hooks

Usage - useColorScheme

import { useColorScheme } from '@nuskin/hooks' // ... const colorScheme = useColorScheme() const theme = React.useMemo(() => { return colorScheme === 'dark' ? MavelyDarkTheme : MavelyDefaultTheme }, [colorScheme]) // ... return ( <NavigationContainer theme={theme}> <Navigation /> </NavigationContainer> )

Usage - useClipboard

import { useClipboard } from '@nuskin/hooks' import { Button } from '@nuskin/ui' // ... const [, updateContent] = useClipboard() // ... return ( <Button title="Copy link to clipboard" onPress={() => updateContent(link)} /> )

FAQs

What is @nuskin&#x2F;mobile-hooks?

undefined

Is @nuskin&#x2F;mobile-hooks popular?

The npm package @nuskin&#x2F;mobile-hooks receives a total of 153 weekly downloads. As such, @nuskin&#x2F;mobile-hooks popularity was classified as not popular.

Is @nuskin&#x2F;mobile-hooks well maintained?

We found that @nuskin&#x2F;mobile-hooks demonstrated a healthy version release cadence and project activity. It has 5 open source maintainers collaborating on the project.

Last updated on 08 Dec 2021
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc