# @platformbuilders/fluid-react-native

> Builders React Native for Fluid Design System

Latest version **1.0.0** (published 2024-11-11) · 0 weekly downloads

## Install

```sh
npm install @platformbuilders/fluid-react-native
pnpm add @platformbuilders/fluid-react-native
yarn add @platformbuilders/fluid-react-native
bun add @platformbuilders/fluid-react-native
```

## Health

**Score 35/100 (D)** — status: abandoned.

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

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2024-11-11 |
| First published | 2022-08-07 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=18 |
| Dependencies | 10 |
| Unpacked size | 7.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Platform Builders |
| Maintainers | mikeeam, dev-builders |
| Keywords | platformbuilders, react native, fluid, components |

## Links

- npm: https://www.npmjs.com/package/@platformbuilders/fluid-react-native
- Repository: https://github.com/platformbuilders/fluid-react-native
- Homepage: https://github.com/platformbuilders/fluid-react-native#readme
- Issues: https://github.com/platformbuilders/fluid-react-native/issues
- npm.io page: https://npm.io/package/@platformbuilders/fluid-react-native

## Dependencies (10)

- [numeral](https://npm.io/package/numeral.md) ^2.0.6
- [rn-placeholder](https://npm.io/package/rn-placeholder.md) 3.0.3
- [react-native-check-box](https://npm.io/package/react-native-check-box.md) 2.1.7
- [react-native-animatable](https://npm.io/package/react-native-animatable.md) 1.4.0
- [react-native-datepicker](https://npm.io/package/react-native-datepicker.md) 1.7.2
- [react-native-collapsible](https://npm.io/package/react-native-collapsible.md) 1.6.2
- [react-native-image-picker](https://npm.io/package/react-native-image-picker.md) 7.1.2
- [react-native-masked-input](https://npm.io/package/react-native-masked-input.md) 2.2.3
- [react-native-haptic-feedback](https://npm.io/package/react-native-haptic-feedback.md) 2.3.3
- [react-native-markdown-display](https://npm.io/package/react-native-markdown-display.md) 7.0.2

## Alternatives

- [@progress/kendo-ooxml](https://npm.io/package/@progress/kendo-ooxml.md) — 152.1K weekly downloads
- [@progress/kendo-react-ripple](https://npm.io/package/@progress/kendo-react-ripple.md) — 8.0K weekly downloads
- [@progress/kendo-react-orgchart](https://npm.io/package/@progress/kendo-react-orgchart.md) — 4.3K weekly downloads
- [@praxisui/dynamic-fields](https://npm.io/package/@praxisui/dynamic-fields.md) — 2.4K weekly downloads
- [@progress/kendo-vue-listbox](https://npm.io/package/@progress/kendo-vue-listbox.md) — 932 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2024-11-11
- 0.12.3 — 2024-05-27
- 0.12.2 — 2024-05-20
- 0.12.1 — 2024-05-10
- 0.11.9 — 2024-05-09
- 0.11.8 — 2024-05-08
- 0.12.0 — 2024-05-08
- 0.11.7 — 2024-02-15
- 0.11.6 — 2023-07-31
- 0.9.0 — 2023-06-09
- 0.8.1 — 2023-06-04
- 0.8.0 — 2023-06-02
- 0.7.3 — 2023-05-30
- 0.7.2 — 2023-03-28
- 0.7.1 — 2023-03-15
- … 10 more at https://npm.io/package/@platformbuilders/fluid-react-native/versions

## README

# @platformbuilders/fluid-react-native

[![Build Status][check-badge]][workflows]
[![npm][npm-badge]][npm]
[![MIT][license-badge]][license]

[npm-badge]: https://img.shields.io/npm/v/@platformbuilders/fluid-react-native.svg
[npm]: https://www.npmjs.com/package/@platformbuilders/fluid-react-native
[license-badge]: https://img.shields.io/dub/l/vibe-d.svg
[license]: https://raw.githubusercontent.com/platformbuilders/fluid-react-native/master/LICENSE.md
[workflows]: https://github.com/platformbuilders/fluid-react-native/actions
[check-badge]: https://github.com/platformbuilders/fluid-react-native/workflows/check/badge.svg

# Fluid React Native
A Fluid React Native é uma biblioteca de componentes UI pronta para uso, desenvolvida pela Platform Builders. Ela foi criada com o objetivo de acelerar o processo de desenvolvimento de aplicativos React Native, oferecendo uma ampla variedade de componentes prontos para serem utilizados.


**Instalação**

    npm install @platformbuilders/fluid-react-native
	//ou
    yarn add @platformbuilders/fluid-react-native

**Uso**
Após a instalação, você pode importar e utilizar os componentes da Fluid React Native em seu aplicativo. Aqui está um exemplo básico de como utilizar um botão da Fluid:

    import React from 'react';
    import { Button } from '@platformbuilders/fluid-react-native';
    
    const App = () => {
      return (
        <Button title="Clique aqui" onPress={() => console.log('Botão clicado!')} />
      );
    }
    export default App;

## Como criar um componente na Fluid

Para criar um novo componente na Fluid React Native, você pode seguir os seguintes passos:

Crie um novo arquivo para o seu componente. Por exemplo, MeuComponente.js.

        import React from 'react';
        import { Text } from 'react-native';
        const MeuComponente = () => {
	        return (
		        <Text>Olá, Mundo!</Text>
		     );
	    }
	    export default MeuComponente;

  
  No arquivo src/components/index.ts exporte seu novo componente:

    export { default  as  MeuComponente } from  './MeuComponente';

***Não esqueça de criar testes para seu novo componente**
1.  Crie um arquivo de teste para o seu componente. Por exemplo, `MeuComponente.spec.js`. 
2. Escreva um teste para verificar se o componente é renderizado corretamente:

    	import React from 'react';
        import { render, getByText } from 'react-native-testing-library';
        import MeuComponente from './MeuComponente';
    	describe('MeuComponente', () => {
   	      it('deve renderizar corretamente', () => {
   	        const { getByText } = render(<MeuComponente />);
   	        const textoElement = getByText('Olá, Mundo!');
   	        expect(textElement).toBeDefined();
   	      });
   	    });
    
    Neste exemplo, estamos verificando se o texto "Olá, Mundo!" é renderizado corretamente no componente `MeuComponente`.
    
6.  Execute os testes para verificar se o componente está funcionando corretamente. No seu terminal, execute o seguinte comando:

        npm test
        // ou
        yarn test

## Como testar usando o Yalc

Certifique-se de ter o Yalc instalado globalmente em sua máquina. Se ainda não o tiver, você pode instalá-lo executando o seguinte comando:

    npm install -g yalc

Navegue até o diretório raiz do projeto da Fluid React Native.

Execute o comando yalc publish para publicar a biblioteca localmente:

    yalc publish

Isso fará com que a biblioteca Fluid React Native seja disponibilizada localmente por meio do Yalc.

No seu projeto React Native, navegue até o diretório raiz e execute o comando yalc add seguido do nome da biblioteca. Por exemplo:

    yalc add @platformbuilders/fluid-react-native

Isso adicionará a biblioteca Fluid React Native ao seu projeto localmente através do Yalc.

Agora você pode importar e utilizar os componentes da Fluid React Native em seu aplicativo normalmente.

Sempre que você fizer alterações na biblioteca Fluid React Native, execute o comando yalc push no diretório raiz do projeto para atualizar o pacote no seu projeto React Native:

    yalc publish --push

Isso fará com que as alterações sejam refletidas automaticamente no seu projeto React Native.

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