Skip to content

Commit

Permalink
feature/init
Browse files Browse the repository at this point in the history
  • Loading branch information
MicaioValente committed Aug 24, 2023
1 parent a83ddf0 commit 24b9603
Show file tree
Hide file tree
Showing 27 changed files with 494 additions and 758 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 waiuru
Copyright (c) 2023 MicaioValente
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
# waiuru-mobile-ui
# @waiuru/waiuru-mobile-ui

waiuru mobile ui
waiuru

## Installation

```sh
npm install waiuru-mobile-ui
npm install @waiuru/waiuru-mobile-ui
```

## Usage

```js
import { Button } from 'waiuru-mobile-ui';
import { multiply } from '@waiuru/waiuru-mobile-ui';

// ...

const result = await multiply(3, 7);
```

## Contributing
Expand Down
4 changes: 2 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"web": "expo start --web"
},
"dependencies": {
"expo": "~49.0.7",
"expo": "~49.0.8",
"expo-status-bar": "~1.6.0",
"react": "18.2.0",
"react-native": "0.72.3",
"react-native": "0.72.4",
"react-dom": "18.2.0",
"react-native-web": "~0.19.6"
},
Expand Down
15 changes: 9 additions & 6 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
import * as React from 'react';

import { StyleSheet, View } from 'react-native';

import { Button } from 'waiuru-mobile-ui';
import { StyleSheet, View, Text } from 'react-native';
import { multiply } from '@waiuru/waiuru-mobile-ui';

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

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

return (
<View style={styles.container}>
<Button loading label="Teste Button" />
<Text>Result: {result}</Text>
</View>
);
}
Expand All @@ -17,8 +22,6 @@ const styles = StyleSheet.create({
flex: 1,
alignItems: 'center',
justifyContent: 'center',
backgroundColor: '#383838',
padding: 22,
},
box: {
width: 60,
Expand Down
427 changes: 233 additions & 194 deletions example/yarn.lock

Large diffs are not rendered by default.

12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mobile-waiuru-ui",
"version": "0.0.1",
"description": "waiuru mobile ui ",
"name": "@waiuru/waiuru-mobile-ui",
"version": "0.1.0",
"description": "waiuru",
"main": "lib/commonjs/index",
"module": "lib/module/index",
"types": "lib/typescript/index.d.ts",
Expand Down Expand Up @@ -41,7 +41,7 @@
"android"
],
"repository": "https://github.com/waiuru/waiuru-mobile-ui",
"author": "waiuru <vitor@waiuru.com> (https://github.com/waiuru)",
"author": "MicaioValente <micaio@waiuru.com> (https://github.com/waiuru)",
"license": "MIT",
"bugs": {
"url": "https://github.com/waiuru/waiuru-mobile-ui/issues"
Expand All @@ -64,13 +64,11 @@
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^28.1.1",
"lottie-react-native": "^6.2.0",
"pod-install": "^0.1.0",
"prettier": "^2.0.5",
"react": "18.2.0",
"react-native": "0.72.3",
"react-native": "0.72.4",
"react-native-builder-bob": "^0.20.0",
"react-native-linear-gradient": "^2.8.2",
"release-it": "^15.0.0",
"typescript": "^5.0.2"
},
Expand Down
12 changes: 0 additions & 12 deletions src/__tests__/button.test.tsx

This file was deleted.

1 change: 1 addition & 0 deletions src/__tests__/index.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
it.todo('write a test');
37 changes: 0 additions & 37 deletions src/components/Button/Button.styles.ts

This file was deleted.

81 changes: 0 additions & 81 deletions src/components/Button/Button.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions src/components/Button/Button.types.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/components/Button/index.ts

This file was deleted.

49 changes: 0 additions & 49 deletions src/constants/colors.ts

This file was deleted.

Loading

0 comments on commit 24b9603

Please sign in to comment.