npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-thermometer

v1.0.2

Published

A customizable thermometer component for React Native applications

Readme

React Native Thermometer

A customizable and animated thermometer component for React Native applications, built with TypeScript.

React Native Thermometer Demo

Features

  • 📏 Customizable: Adjust dimensions, colors, and maximum temperature.
  • 🎨 Stylish: Built-in color options with support for customization.
  • 🎞️ Smooth Animations: Temperature changes are animated for better visual feedback.
  • 🌍 Cross-Platform: Works seamlessly on iOS and Android.

Installation

Install the package using npm or yarn:

npm install react-native-thermometer

or

yarn add react-native-thermometer

You also need to install react-native-svg as it is a peer dependency:

npm install react-native-svg

Usage

Basic Example

import React from 'react';
import { View, StyleSheet } from 'react-native';
import Thermometer from 'react-native-thermometer';

const App = () => {
  return (
    <View style={styles.container}>
      <Thermometer temperature={30} />
    </View>
  );
};

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
  },
});

export default App;

Advanced Example with Customizations

import React from 'react';
import { View, StyleSheet } from 'react-native';
import Thermometer from 'react-native-thermometer';

const App = () => {
  return (
    <View style={styles.container}>
      <Thermometer
        temperature={45}
        maxTemperature={100}
        width={200}
        height={400}
        fillColor="#4CAF50"
        backgroundColor="#E0E0E0"
        tickColor="#9E9E9E"
        highlightedTickColor="#FF5722"
        borderColor="#000"
        style={styles.customThermometer}
      />
    </View>
  );
};

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#FFFFFF',
  },
  customThermometer: {
    marginTop: 20,
  },
});

export default App;

Props

| Prop Name | Type | Default | Description | |-----------------------|---------------------|---------------|-------------------------------------------------------| | temperature | number | Required | The current temperature value to display. | | maxTemperature | number | 50 | The maximum temperature value for the thermometer. | | width | number | 150 | The width of the thermometer. | | height | number | 300 | The height of the thermometer. | | fillColor | string | #EF3024 | The color of the thermometer's temperature bar. | | backgroundColor | string | #fff | The background color of the thermometer. | | tickColor | string | #A9A9A9 | The color of the tick marks. | | highlightedTickColor| string | #FFFFFF | The color of the highlighted tick marks. | | borderColor | string | #E6EAF4 | The border color of the thermometer. | | style | ViewStyle | undefined | Additional styles for the thermometer container. |

How It Works

  1. The temperature prop determines the height of the red bar.
  2. The thermometer is animated to smoothly transition between temperature changes.
  3. Ticks dynamically change color to reflect the current temperature level.

Known Issues

  • Ensure you install react-native-svg for the thermometer to render correctly.
  • The thermometer may not render properly if the temperature exceeds maxTemperature. Always provide realistic values.

Contributing

Contributions are welcome! Follow these steps to contribute:

  1. Fork the repository.
  2. Create a feature branch: git checkout -b feature-name.
  3. Commit your changes: git commit -m 'Add some feature'.
  4. Push to the branch: git push origin feature-name.
  5. Open a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.


Contact

If you have any questions or need support, feel free to reach out: