# @neo-react/local-wallet

> React component that helps to handle encrypting and decrypting NEO wallet keys.

Latest version **0.1.0** (published 2019-08-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @neo-react/local-wallet
pnpm add @neo-react/local-wallet
yarn add @neo-react/local-wallet
bun add @neo-react/local-wallet
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2019-08-15 |
| First published | 2019-08-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 6 |
| Unpacked size | 131.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ED |
| Maintainers | ediopia |
| Keywords | neo, blockchain, wallets, react |

## Links

- npm: https://www.npmjs.com/package/@neo-react/local-wallet
- Repository: https://github.com/ediopia/neo-react
- Homepage: https://github.com/ediopia/neo-react#readme
- Issues: https://github.com/ediopia/neo-react/issues
- npm.io page: https://npm.io/package/@neo-react/local-wallet

## Dependencies (6)

- [yup](https://npm.io/package/yup.md) ^0.27.0
- [formik](https://npm.io/package/formik.md) ^1.5.8
- [react-icons](https://npm.io/package/react-icons.md) ^3.7.0
- [react-router](https://npm.io/package/react-router.md) ^5.0.1
- [react-router-dom](https://npm.io/package/react-router-dom.md) ^5.0.1
- [@cityofzion/neon-js](https://npm.io/package/@cityofzion/neon-js.md) ^4.7.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2019-08-15
- 0.0.10 — 2019-08-14
- 0.0.9 — 2019-08-13
- 0.0.8 — 2019-08-13
- 0.0.7 — 2019-08-13
- 0.0.6 — 2019-08-13
- 0.0.5 — 2019-08-12

## README

# `@neo-react/local-wallet`

> React component that helps to handle encrypting and decrypting NEO wallet keys.

## Demo
[Click](https://codesandbox.io/s/neo-reactlocal-wallet-yfcvd)

## Usage

```typescript
import React from "react";
import LocalWallet from "@neo-react/local-wallet";

interface ConnectedWallet {
  provider: string;
  address: string;
  encryptedKey?: string;
  privateKey?: string;
}

const WalletModal = () => {
  return(
    <LocalWallet 
      onConnected={(connectedWallet: ConnectedWallet) => {
        /* Handle data using your own state manager */
      }} 
    />
  )
}
```

## Api

| Props | Type | Description |
| --- | ---  | --- |
| savedWallets | array | It passes encrypted key list.
| onConnected | func | It returns wallet data after it is connected.

---
_Source: https://npm.io/package/@neo-react/local-wallet · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
