0.1.0 • Published 7 months ago

@eliasasimov/kit-mobile-poc v0.1.0

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

Simple React Native UI Kit

A simple UI component library for React Native applications.

Installation

npm install simple-react-native-ui-kit

or

yarn add simple-react-native-ui-kit

Components

Button

A customizable button component with different variants and sizes.

Usage

import { Button, useTheme } from 'simple-react-native-ui-kit';

const MyComponent = () => {
  return (
    <Button 
      label="Click Me" 
      onPress={() => console.log('Button pressed')} 
      variant="primary" 
      size="medium" 
    />
  );
};

Props

PropTypeDefaultDescription
labelstring-Text to display in the button
onPressfunction-Function to call when button is pressed
variant'primary' | 'secondary' | 'outline' | 'ghost''primary'Visual style of the button
size'small' | 'medium' | 'large''medium'Size of the button
disabledbooleanfalseWhether the button is disabled
styleViewStyle-Additional styles for the button container
textStyleTextStyle-Additional styles for the button text

Theming

The package includes a useTheme hook that provides access to the theme colors.

import { useTheme } from 'simple-react-native-ui-kit';

const MyComponent = () => {
  const theme = useTheme();
  
  return (
    <View style={{ backgroundColor: theme.colors.background }}>
      <Text style={{ color: theme.colors.text }}>
        This text uses theme colors
      </Text>
    </View>
  );
};

License

MIT

Mantenedores / Soporte

Asimov 2025