0.2.0 • Published 1 year ago

react-native-hysteresis v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

react-native-hysteresis

UI component allowing to setup hysteresis range. Most basic usage is to control heating or cooling devices.

Installation

npm install react-native-hysteresis
OR
yarn add react-native-hysteresis

Usage

import { HysteresisControl } from "react-native-hysteresis";

// ...

<HysteresisControl
  range={{ min: 0, max: 50 }}
  step={5}
  initialValues={{ min: 10, max: 20 }}
  onChange={(e) => console.log(e)}
/>

For better understanding see the included example app.

Raw, without styling.

Alt text

Inverted hysteresis lines.

Alt text

Without axis labels just a title for X axis.

Some styling for control label. Example of voltage control. Alt text

With labels and title on axis

Example of temperature control. Alt text

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

0.2.0

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago