rm-ui-widget
v0.1.8
Published
This is React Native reusable UI Kit
Downloads
11
Readme
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