Skip to content

Commit

Permalink
Added button and cardview
Browse files Browse the repository at this point in the history
  • Loading branch information
RakeshM committed May 8, 2024
1 parent d7b512c commit 5af8451
Show file tree
Hide file tree
Showing 11 changed files with 28,724 additions and 41 deletions.
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# react-native-ui-kit

This is React Native reusable UI Kit
This is React Native reusable UI Kit

## Installation

Expand All @@ -10,12 +10,20 @@ npm install react-native-ui-kit

## Usage

```js
import { multiply } from 'react-native-ui-kit';
# 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>

const result = await multiply(3, 7);
# Custom button has 5 button type available however you can customize button style and pass style in Props

```js
// ...
```

## Contributing
Expand Down
9 changes: 1 addition & 8 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
import * as React from 'react';

import { StyleSheet, View, Text } from 'react-native';
import { multiply } from 'react-native-ui-kit';

export default function App() {
const [result, setResult] = React.useState<number | undefined>();

React.useEffect(() => {
multiply(3, 7).then(setResult);
}, []);

return (
<View style={styles.container}>
<Text>Result: {result}</Text>
<Text>Result</Text>
</View>
);
}
Expand Down
9 changes: 2 additions & 7 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,8 @@ pre-commit:
parallel: true
commands:
lint:
glob: "*.{js,ts,jsx,tsx}"
glob: '*.{js,ts,jsx,tsx}'
run: npx eslint {staged_files}
types:
glob: "*.{js,ts, jsx, tsx}"
glob: '*.{js,ts, jsx, tsx}'
run: npx tsc --noEmit
commit-msg:
parallel: true
commands:
commitlint:
run: npx commitlint --edit
Loading

0 comments on commit 5af8451

Please sign in to comment.