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 🙏

© 2024 – Pkg Stats / Ryan Hefner

ui-meter

v0.3.0

Published

This is a react native ui components library

Downloads

740

Readme

React Native UI Meter

Introducing our comprehensive React Native UI library, designed to streamline your app development process. This library includes customizable App Themes, Cross-platform compatibility for both iOS and Android. It features a rich collection of pre-built components, powerful hooks for enhanced functionality, intuitive form state management, and integrated query handling for efficient data management. With this library, you can create beautiful, functional, and responsive applications effortlessly, providing a seamless and efficient development experience.

Alternative Text

Installation

npm install ui-meter react-native-svg
// or
yarn add ui-meter react-native-svg

Usage

import { Box, Center, Text } from 'ui-meter';

export default function App() {
  return (
    <Box>
      <Center height="100%">
        <Text color="red" fontWeight="bold" fontSize={20}>
          Hello World
        </Text>
      </Center>
    </Box>
  );
}

Features

  • App Theme
  • Cross platform Universal
  • Components
  • Hooks
  • From state handle
  • Query support

API Reference

Components

Introducing our comprehensive React Native UI library with customizable themes, universal components, powerful hooks, efficient form state handling, and integrated query support. Create beautiful, functional, and responsive applications effortlessly.

Layout

Box

import { Box, Text } from 'ui-meter';

export default function () {
  return (
    <Box backgroundColor="red" padding={50} borderRadius={10}>
      <Text textAlign="center">This is the Box</Text>
    </Box>
  );
}

Center

import { Box, Text, Center } from 'ui-meter';

export default function () {
  return (
    <Center>
      <Box backgroundColor="red" padding={50} borderRadius={10}>
        <Text textAlign="center">This is the Box</Text>
      </Box>
    </Center>
  );
}

HStack

import { Box, Text, HStack } from 'ui-meter';

export default function () {
  return (
    <HStack>
      <Box backgroundColor="red" padding={50} borderRadius={10}>
        <Text textAlign="center">This is the Box</Text>
      </Box>
      <Box backgroundColor="red" padding={50} borderRadius={10}>
        <Text textAlign="center">This is the Box</Text>
      </Box>
    </HStack>
  );
}

VStack

import { Box, Text, VStack } from 'ui-meter';

export default function () {
  return (
    <VStack>
      <Box backgroundColor="red" padding={50} borderRadius={10}>
        <Text textAlign="center">This is the Box</Text>
      </Box>
      <Box backgroundColor="red" padding={50} borderRadius={10}>
        <Text textAlign="center">This is the Box</Text>
      </Box>
    </VStack>
  );
}

Divider

import { Box, Text, Center, Divider } from 'ui-meter';

export default function App() {
  return (
    <Center height={'100%'}>
      <Box width={200}>
        <Box backgroundColor="red" padding={50} borderRadius={10}>
          <Text textAlign="center">This is the Box</Text>
        </Box>
        <Divider m={10} backgroundColor={'green'} orientation="horizontal" />
        <Box backgroundColor="red" padding={50} borderRadius={10}>
          <Text textAlign="center">This is the Box</Text>
        </Box>
      </Box>
    </Center>
  );
}

Typography

Text

import { Box, Center, Text } from 'ui-meter';

export default function App() {
  return (
    <Box>
      <Center height="100%">
        <Text color="red" fontWeight="bold" fontSize={20}>
          Hello World
        </Text>
      </Center>
    </Box>
  );
}

Heading

import { Box, Center, Heading } from 'ui-meter';

export default function App() {
  return (
    <Box>
      <Center height="100%">
        <Heading color="red">Hello World</Heading>
      </Center>
    </Box>
  );
}

Button

import { Button, ButtonText, Center } from 'ui-meter';

export default function App() {
  return (
    <Center flex={1} paddingHorizontal={10}>
      <Button variant="outline">
        <ButtonText color="black"> Click Me </ButtonText>
      </Button>
    </Center>
  );
}

CheckBox

import { Center, Checkbox } from 'ui-meter';

export default function App() {
  const handleCheck = (check: boolean) => {
    console.log(check);
  };

  return (
    <Center flex={1}>
      <Checkbox onCheck={handleCheck} label="Label" />
    </Center>
  );
}

Radio

import { Center, Radio, RadioGroup } from 'ui-meter';

export default function App() {
  const handleChange = (value: string) => {
    console.log(value);
  };

  return (
    <Center flex={1}>
      <RadioGroup onChange={handleChange} rowGap={10}>
        <Radio
          label="label1"
          value="change 1"
          isDisabled={false}
          isInvalid={false}
        />
        <Radio
          label="label2"
          value="change 2"
          isDisabled={false}
          isInvalid={false}
        />
      </RadioGroup>
    </Center>
  );
}

Switch

import { Center, Switch } from 'ui-meter';

export default function App() {
  const handleChange = (value: boolean) => {
    console.log(value);
  };

  return (
    <Center flex={1}>
      <Switch onChange={handleChange} />
    </Center>
  );
}

Input

import { Center, Input } from 'ui-meter';

export default function App() {
  return (
    <Center flex={1} paddingHorizontal={10}>
      <Input
        variant="underline"
        placeholder="Enter Your Password"
        type="password"
        passwordLockBg="#fff"
      />
    </Center>
  );
}

Contributing

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.

Support

For support, email [email protected]

Feedback

If you have any feedback, please reach out to us at [email protected]

FAQ

Question 1

Answer 1

Question 2

Answer 2

🔗 Links

linkedin twitter

Authors

License

MIT