Skip to content

082rakesh/react-native-ui-kit

Repository files navigation

react-native-ui-kit

This is a React Native reusable UI Kit. It contains

  • CustomButton
  • CardView

Installation

npm install react-native-ui-kit

Usage

Custom button has 5 button types available however you can customize button style and pass style in Props

import CustomButton from 'rm-ui-widget';

 <CustomButton type={ButtonType.PRIMARY} onPress={onPrimaryPressHandler}>
		<Text>Primary Button</Text>
</CustomButton>

<CustomButton type={ButtonType.SECONDARY}>
	<Text>Secondary Button</Text>
</CustomButton>

Customize button with custom style:

export type Props = {
  children: React.ReactElement;
  onPress?: () => void;
  style?: ViewStyle;
  type?: ButtonType;
};

CardView

import CardView from 'rm-ui-widget';
<View style={styles.container}>
  <CardView />
</View>

Contributing

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

License

MIT


Made with create-react-native-library

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published