|
1 | | -<img alt="React Native Typescript Library Starter" src="assets/logo.png" width="1050"/> |
| 1 | +<img alt="React Native Bounceable" src="assets/logo.png" width="1050"/> |
2 | 2 |
|
3 | | -[](https://github.com/WrathChaos/react-native-typescript-library-starter) |
| 3 | +[](https://github.com/WrathChaos/react-native-bounceable) |
4 | 4 |
|
5 | | -[](https://github.com/WrathChaos/react-native-typescript-library-starter) |
| 5 | +[](https://github.com/WrathChaos/react-native-bounceable) |
6 | 6 |
|
7 | | -[](https://www.npmjs.com/package/react-native-typescript-library-starter) |
8 | | -[](https://www.npmjs.com/package/react-native-typescript-library-starter) |
| 7 | +[](https://www.npmjs.com/package/@freakycoder/react-native-bounceable) |
| 8 | +[](https://www.npmjs.com/package/@freakycoder/react-native-bounceable) |
9 | 9 |  |
10 | 10 | [](https://opensource.org/licenses/MIT) |
11 | 11 | [](https://github.com/prettier/prettier) |
12 | 12 |
|
13 | 13 | <p align="center"> |
14 | | - <img alt="React Native Typescript Library Starter" |
| 14 | + <img alt="React Native Bounceable" |
15 | 15 | src="assets/Screenshots/typescript.jpg" /> |
16 | 16 | </p> |
17 | 17 |
|
18 | | -## Library Usage |
19 | | - |
20 | | -- `npm i` |
21 | | -- Delete example folder |
22 | | -- Delete build folder |
23 | | -- Make your own library into the `lib` folder |
24 | | -- Change package.json |
25 | | -- Change README for your own documentation |
26 | | -- `npm run build` |
27 | | - |
28 | | -``` |
29 | | -> react-native-typescript-library-starter@0.1.0 build /Users/kuray/Coursion/MyLibraries/ReactNative/react-native-typescript-library-starter |
30 | | -> cd lib && tsc && cp ../package.json ../build/dist/ && Echo Build completed! |
31 | | -
|
32 | | -Build completed! |
33 | | -``` |
34 | | - |
35 | | -- Test your build/dist into the new project |
36 | | -- Finally, time to npm publish :) |
37 | | - |
38 | | -### Below part is for Documentation ! Remove above Library Usage |
39 | | - |
40 | 18 | # Installation |
41 | 19 |
|
42 | 20 | Add the dependency: |
43 | 21 |
|
44 | 22 | ```bash |
45 | | -npm i react-native-typescript-library-starter |
46 | | -``` |
47 | | - |
48 | | -## Peer Dependencies |
49 | | - |
50 | | -<h5><i>IMPORTANT! You need install them</i></h5> |
51 | | - |
52 | | -```js |
53 | | -"react": ">= 16.x.x", |
54 | | -"react-native": ">= 0.55.x", |
| 23 | +npm i @freakycoder/react-native-bounceable |
55 | 24 | ``` |
56 | 25 |
|
57 | 26 | # Usage |
58 | 27 |
|
59 | 28 | ## Import |
60 | 29 |
|
61 | 30 | ```jsx |
62 | | -import MyComponent from "react-native-typescript-library-starter"; |
| 31 | +import RNBounceable from "@freakycoder/react-native-bounceable"; |
63 | 32 | ``` |
64 | 33 |
|
65 | 34 | ## Fundamental Usage |
66 | 35 |
|
| 36 | +You can put **ANY children component** inside the **RNBounceable** component, it will make it bounce when it is pressed |
| 37 | + |
67 | 38 | ```jsx |
68 | | -<MyComponent /> |
| 39 | +<RNBounceable onPress={() => {}}> |
| 40 | + <View style={styles.bounceButtonStyle}> |
| 41 | + <Text style={styles.bounceButtonTextStyle}>Bounce</Text> |
| 42 | + </View> |
| 43 | +</RNBounceable> |
69 | 44 | ``` |
70 | 45 |
|
71 | 46 | # Configuration - Props |
72 | 47 |
|
73 | | -| Property | Type | Default | Description | |
| 48 | +Coming Soon with more customizable props |
| 49 | + |
| 50 | +<!-- | Property | Type | Default | Description | |
74 | 51 | | -------- | :-----: | :-----: | ------------------------------------------------------- | |
75 | | -| outline | boolean | true | make the button outline | |
76 | | -| solid | boolean | false | make the button with a solid background and a shadow | |
77 | | -| gradient | boolean | false | make the button with a gradient background and a shadow | |
78 | | -| width | number | 150 | change the button's width | |
| 52 | +| outline | boolean | true | make the button outline | |
| 53 | +| solid | boolean | false | make the button with a solid background and a shadow | |
| 54 | +| gradient | boolean | false | make the button with a gradient background and a shadow | |
| 55 | +| width | number | 150 | change the button's width | --> |
79 | 56 |
|
80 | 57 | ## Future Plans |
81 | 58 |
|
82 | 59 | - [x] ~~LICENSE~~ |
| 60 | +- [ ] More customizable animation props |
83 | 61 | - [ ] Write an article about the lib on Medium |
84 | 62 |
|
85 | | -# Change Log |
86 | | - |
87 | | -Change log will be here ! |
88 | | - |
89 | 63 | ## Author |
90 | 64 |
|
91 | 65 | FreakyCoder, kurayogun@gmail.com |
92 | 66 |
|
93 | 67 | ## License |
94 | 68 |
|
95 | | -React Native Typescript Library Starter is available under the MIT license. See the LICENSE file for more info. |
| 69 | +React Native Bounceable is available under the MIT license. See the LICENSE file for more info. |
0 commit comments