open-index/open-npm huggingface dataset:
npm package: @lighthouseapps/react-native-date-picker
Description: React Native DatePicker for Android and iOS
Author: Alvaro Silveira
Latest version: 1.0.0

# react-native-date-picker
> React Native DatePicker for Android and iOS

## Getting started
`$ npm i @lighthouseapps/react-native-date-picker --save`

## Usage
```javascript
import React from 'react';
import DatePicker from '@lighthouseapps/react-native-date-picker';

class App extends React.Component {
  componentDidMount() {
    // handleToggle('date' || 'time', callback);

    this.datePicker.handleToggle('date', date => console.log(date));
  }

  render() {
    return <DatePicker ref={ref => { this.datePicker = ref; }} />;
  }
}
```
npm package: @lighthouseapps/react-native-dva
Description: React Native Dva for Android and iOS
Author: Alvaro Silveira
Latest version: 1.2.6

# react-native-dva
> React Native Dva for Android and iOS

## Getting started
`$ npm i @lighthouseapps/react-native-dva --save`

## Usage
```javascript
// ./src/models/app.js
export default {
  namespace: 'app',
  state: {},
  effects: {},
  reducers: {},
  subscriptions: {}
};

// ./src/models/index.js
import app from './app';

export default [
  app
];

// ./src/router.js
import {
  LoadingScreen,
  SigninScreen,
  HomeScreen
} from './screens';
import {
  AppLayout
} from './layouts';

export default {
  type: 'switch',
  routes: [
    {
      type: 'screen',
      name: 'Loading',
      layout: null,
      component: LoadingScreen
    },
    {
      type: 'screen',
      name: 'Signin',
      layout: null,
      component: SigninScreen
    },
    {
      type: 'stack',
      name: 'App',
      layout: null,
      routes: [
        {
          type: 'screen',
          name: 'Books',
          layout: null,
          component: HomeScreen
        }
      ],
      options: {}
    }
  ],
  layout: AppLayout,
  options: {}
}

// index.js
import React from 'react';
import dva, {
  createRouter
} from 'react-native-dva';
import App from './App';
import models from './src/models';
import router from './src/router';
import {
  name
} from './app.json';

const {
  routerMiddleware,
  routerReducer,
  Router
} = createRouter(router);

const app = dva({
  models,
  extraReducers: { router: routerReducer },
  onAction: [ routerMiddleware ]
});

app.start(name, <Router />);
```
npm package: @lighthouseapps/request
Description: > Javascript http request library
Author: Alvaro Silveira
Latest version: 1.1.3

# request
> Javascript http request library

### Usage
```Javascript
import oauth2 from '@lighthouseapps/react-native-oauth2';
import request from '@lighthouseapps/request';
import io from 'socket.io-client';

const router = {
  "createCode": {
    "uri": "/auth/authorize/:id",
    "method": "POST",
    "headers": {
      "Content-Type": "application/x-www-form-urlencoded"
    }
  },
  "createCodeToken": {
    "uri": "/auth/token",
    "method": "POST",
    "headers": {
      "Content-Type": "application/x-www-form-urlencoded"
    }
  },
  "getUsers": {
    "uri": "/users",
    "method": "GET",
    "listenHeaders": [
      "Authorization"
    ],
    "listenSocket": "users"
  },
  "getUser": {
    "uri": "/user",
    "method": "GET",
    "listenHeaders": [
      "Authorization"
    ],
    "listenSocket": "user/:id"
  }
};

const HOST = 'http://localhost:8080';

const io = require('socket.io-client');

const socket = io(HOST);

async function test() {
  await request.initialize(router, {
    baseURL: HOST,
    timeout: 10000,
    onHeaders: {
      Authorization: async () => {
        const token = await oauth2.getToken();

        return 'Bearer ' + token.access_token;
      }
    },
    socket
  });

  request.on('getUser', (err, res) => {
    if(err) console.log(err);

    console.log(res);
  });

  request.getUser()
    .then(res => console.log(res))
    .catch(err => console.log(err));
}

test();
```
npm package: @lighthouseapps/ui
Description: A Customizable and Modular Components Library for React Native apps
Author: Donald Silveira
Latest version: 0.0.69

# Lighthouse UI

## Installation

```
$ npm install --save @lighthouseit/ui
$ react-native link @lighthouseit/ui # No need to run this with CRNA / Expo apps
```

## To Do

- [ ] Write README
- [ ] Add components documentation to https://lighthouseit.github.io/en/docs/components
- [ ] Add examples

## License

[MIT](https://github.com/LighthouseIT/ui/blob/master/LICENSE)
Copyright (c) 2018-present, [Lighthouse](http://lighthouseit.com.br)
npm package: @lighthouseapps/utils
Description: A javascript library used by Lighthouse projects
Author: Donald Silvera
Latest version: 1.4.0

# Lighthouse Utils

![Lighthouse Utils](https://i.imgur.com/sJnEY2T.png)

A javascript library used by Lighthouse projects

## Installation

```bash
$ yarn add lighthouse-utils
// ou com npm
$ npm install lighthouse-utils
```

## Test

```bash
$ yarn test
$ npm run test
```

## Usage

```javascript
import {
  capitalize,
  validateCPF,
  maskCPF,
  unmaskCPF,
  validateCNPJ,
  maskCNPJ,
  unmaskCNPJ,
  validateCCExpiry,
  validateCCNumber,
  getCCNumberInfo,
  initials,
  urlFormat,
  maskPhone,
  unmaskPhone,
  validatePhone,
} from "@lighthouseapps/utils";

capitalize("LIGHTHOUSE - CRIAMOS APPS INSCRIVEIS"); // Lighthouse - Criamos Apps Incriveis
validateCPF("1111222233334444"); // Validate a CPF number and returns a boolean
maskCPF('28832326280'); // Returns formatted CPF string -> 288.323.262-80
unmaskCPF('288.323.262-80') // Removes CPF mask -> 28832326280
validateCNPJ("72175221000101"); // Validate a CNPJ number and returns a boolean
maskCNPJ('17702663000150'); // Returns formatted CNPJ string -> 17.702.663/0001-50
unmaskCNPJ('17.702.663/0001-50') // Removes CNPJ mask -> 17702663000150
validateCCNumber("5598928852411791"); // Validate credit card number and returns a boolean
validateCCExpiry("12/22"); // Validate credit card expiration date and returns a boolean
getCCNumberInfo("5598928852411791"); // Returns a object with informations about CC Number
initials('Lighthouse apps'); // Returns first letter of each word -> "LA"
maskPhone('11999898887'); // Returns brazzilian formatted phone string -> (11) 99989-8887
unmaskPhone('(11) 99989-8887'); // Removes phone mask -> 11999898887
validatePhone('(11) 99989-8887') // Validate a phone number and returns a boolean
```

## Brazzilian-utils shortcuts

For the sake of convenience, we expose the following [Brazzilian-utils](https://brazilian-utils.com.br/) methods:

- formatCPF
- isValidCPF
- isValidCNPJ
- formatCNPJ
- isValidPhone
- isValidEmail
- isValidBoleto
- formatBoleto
npm package: @lighthousesystems/esbuild-plugin-handlebars
Description: Handlebars.js plugin for esbuild
Author: Sean Fleming
Latest version: 1.0.0

[![latest version](https://img.shields.io/npm/v/@lighthousesystems/esbuild-plugin-handlebars)](https://www.npmjs.com/package/@lighthousesystems/esbuild-plugin-handlebars)

# esbuild-plugin-handlebars

A [handlebars](http://handlebarsjs.com) template precompiler for [esbuild](https://esbuild.github.io).

## Installation

`npm i esbuild-plugin-handlebars --save-dev`

## General Usage

### esbuild configuration

```javascript
import hbsPlugin from "esbuild-plugin-handlebars";

esbuild.build({
    entryPoints: ["index.ts"],
    ...
    plugins: [
        hbsPlugin({
            filter: /\.(hbs|handlebars)$/i,
            additionalHelpers: {
                toLowerCase: "templateHelpers/toLowerCase",
                translate: "templateHelpers/translate"
            },
            precompileOptions: {}
        })
    ]
});
```

### Your JS making use of the templates

```javascript
import template from "template.hbs";
// => returns template.hbs content as a template function
```

## Details

Helpers must be provided as options to the plugin.
It is unknown whether external partials work.

## Options

- filter: the filenames that will be processed by this plugin. Defaults to files with the extensions `.hbs` or `.handlebars`.
- additionalHelpers: the helpers that can be used in templates.
- precompileOptions: options passed into the `hb.precompile()` call.

## Change Log

See the [CHANGELOG.md](https://github.com/lighthousesystems/esbuild-plugin-handlebars/blob/master/CHANGELOG.md) file.

## License

MIT (http://www.opensource.org/licenses/mit-license)
npm package: @lighthousesystems/pdf-annotate.js
Description: Annotation layer for pdf.js
Author: Lighthouse Systems Ltd
Latest version: 0.0.12

# pdf-annotate.js 

Annotation layer for [pdf.js](https://github.com/mozilla/pdf.js)

## Objectives

- Provide a low level annotation layer for [pdf.js](https://github.com/mozilla/pdf.js).
- Optional high level UI for managing annotations.
- Agnostic of backend, just supply your own `StoreAdapter` to fetch/store data.
- Prescribe annotation format.

## Example

```js
import PDFJSAnnotate from '@lighthousesystems/pdfjs-annotate';
import MyStoreAdapter from './myStoreAdapter';

const { UI } = PDFJSAnnotate;
const VIEWER = document.getElementById('viewer');
const RENDER_OPTIONS = {
  documentId: 'MyPDF.pdf',
  pdfDocument: null,
  scale: 1,
  rotate: 0
};

PDFJS.workerSrc = 'pdf.worker.js';
PDFJSAnnotate.setStoreAdapter(MyStoreAdapter);

PDFJS.getDocument(RENDER_OPTIONS.documentId).then((pdf) => {
  RENDER_OPTIONS.pdfDocument = pdf;
  VIEWER.appendChild(UI.createPage(1));
  UI.renderPage(1, RENDER_OPTIONS);
});
```

See more [examples](https://github.com/lighthousesystems/pdf-annotate.js/blob/master/web/index.js).

## Documentation

[View the docs](https://github.com/lighthousesystems/pdf-annotate.js/tree/master/docs).

## Developing

```bash
# clone the repo
$ git clone https://github.com/lighthousesystems/pdf-annotate.js.git
$ cd pdf-annotate.js

# intall dependencies
$ npm install

# start example server
$ npm start
$ open http://127.0.0.1:8080

# run tests
$ npm test
```
## License

MIT
npm package: @lightiichen/react-native-layouts
Description: test
Author: lightiichen
Latest version: 0.1.0

# react-native-layouts

A minimalist layout components package for React Native

## Installation

```sh
npm install react-native-layouts
```

## Usage

```js
import { multiply } from 'react-native-layouts';

// ...

const result = await multiply(3, 7);
```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
npm package: @lighting-beetle/light-react-scripts
Description: Configuration and scripts for Light
Latest version: 2.0.2
Deprecated: Please use @lighting-beetle/lighter-react-scripts

# react-scripts

This package includes scripts and configuration used by [Create React App](https://github.com/facebookincubator/create-react-app).<br>
Please refer to its documentation:

* [Getting Started](https://github.com/facebookincubator/create-react-app/blob/master/README.md#getting-started) – How to create a new app.
* [User Guide](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md) – How to develop apps bootstrapped with Create React App.