This is a React Native reusable UI Kit. It contains
- CustomButton
- CardView
npm install react-native-ui-kit
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>
export type Props = {
children: React.ReactElement;
onPress?: () => void;
style?: ViewStyle;
type?: ButtonType;
};
import CardView from 'rm-ui-widget';
<View style={styles.container}>
<CardView />
</View>
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library