@hpro/react-native-components
TypeScript icon, indicating that this package has built-in type declarations

1.0.1-alpha.0 • Public • Published

React Native Components Library

Easy to use, fast and lightweight library for React Native.

NPM version NPM downloads

🚧 This project is under development and is not yet ready for use.

✨ Features

  • ✅ Button
  • ✅ Input
  • ✅ Select
  • ❌ Modal
  • ❌ View
  • ❌ Salsa Dancer

🚀 Tecnologies

The following tools were used in the construction of the project:

📦 Install

⚠️ Node.js 16 or newer is required.

Use the package manager npm, yarn or pnpm.

npm install @hpro/react-native-components
yarn add @hpro/react-native-components
pnpm add @hpro/react-native-components

🔨 Usage

import { Button } from "@hpro/react-native-components";

function App() {
  return (
    // ...
    // Input with placeholder
    <Input
      placeholder={"Input"}
      onChangeText={(text) => {
        console.log(text);
      }} />

    // Select with placeholder
    <Select
      placeholder={"Select"}
      options={[
        { label: "Option 1", value: "1" },
        { label: "Option 2", value: "2" },
        { label: "Option 3", value: "3" },
      ]}
      onChange={(value) => {
        console.log(value);
      }} />

    // Button with text
    <Button
      text={"Button"}
      onPress={() => {
        console.log("Button pressed");
      }} />
    // ...
  )
}

export default App

🤝 How to Contribute

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

📝 License

This project is under the MIT License

Package Sidebar

Install

npm i @hpro/react-native-components

Weekly Downloads

2

Version

1.0.1-alpha.0

License

MIT

Unpacked Size

23.1 kB

Total Files

17

Last publish

Collaborators

  • geisonjr
  • hproinformatica