# igloo-rn-widget

general rn widget for igloo

## Installation

```sh
npm install igloo-rn-widget
```

## Usage

> Supported Component

```js
import {
  Alert,
  Amount,
  Button,
  DatePicker,
  Email,
  Input,
  Phone,
  Preview,
  Select,
  Status,
  TextArea,
  Upload,
  Fold,
  Dialog,
  Checkbox,
  RadioGroup,
  Card,
} from 'igloo-rn-widget';
```

> Custom Theme

1. create a file named custom-theme.js
2. put the code below into the custom-theme.js file

   ```js
   import { customTheme } from 'igloo-rn-widget/lib/module/theme';

   customTheme({
     Colors: {
       primary: '#009AFF',
       primaryLight: '#F4F7FE',
     },
   });
   ```

3. import custom-theme at the most begining of you rn index file.
   ```js
   import './custom-theme';
   import { AppRegistry } from 'react-native';
   AppRegistry.registerComponent('App', () => App);
   ```

## Preview

![](https://raw.githubusercontent.com/matrixyf/pictureRepo/main/Screenshot_20211229-130759.jpg)

## Contributing

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

## License

MIT
