|
| 1 | +<img alt="React Native Typescript Library Starter" src="assets/logo.png" width="1050"/> |
| 2 | + |
| 3 | +[](https://github.com/WrathChaos/react-native-typescript-library-starter) |
| 4 | + |
| 5 | +[](https://github.com/WrathChaos/react-native-typescript-library-starter) |
| 6 | + |
| 7 | +[](https://www.npmjs.com/package/react-native-typescript-library-starter) |
| 8 | +[](https://www.npmjs.com/package/react-native-typescript-library-starter) |
| 9 | + |
| 10 | +[](https://opensource.org/licenses/MIT) |
| 11 | +[](https://github.com/prettier/prettier) |
| 12 | + |
| 13 | +<p align="center"> |
| 14 | + <img alt="React Native Typescript Library Starter" |
| 15 | + src="assets/Screenshots/typescript.jpg" /> |
| 16 | +</p> |
| 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 | +# Installation |
| 41 | + |
| 42 | +Add the dependency: |
| 43 | + |
| 44 | +```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", |
| 55 | +``` |
| 56 | + |
| 57 | +# Usage |
| 58 | + |
| 59 | +## Import |
| 60 | + |
| 61 | +```jsx |
| 62 | +import MyComponent from "react-native-typescript-library-starter"; |
| 63 | +``` |
| 64 | + |
| 65 | +## Fundamental Usage |
| 66 | + |
| 67 | +```jsx |
| 68 | +<MyComponent /> |
| 69 | +``` |
| 70 | + |
| 71 | +# Configuration - Props |
| 72 | + |
| 73 | +| Property | Type | Default | Description | |
| 74 | +| -------- | :-----: | :-----: | ------------------------------------------------------- | |
| 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 | |
| 79 | + |
| 80 | +## Future Plans |
| 81 | + |
| 82 | +- [x] ~~LICENSE~~ |
| 83 | +- [ ] Write an article about the lib on Medium |
| 84 | + |
| 85 | +# Change Log |
| 86 | + |
| 87 | +Change log will be here ! |
| 88 | + |
| 89 | +## Author |
| 90 | + |
| 91 | +FreakyCoder, kurayogun@gmail.com |
| 92 | + |
| 93 | +## License |
| 94 | + |
| 95 | +React Native Typescript Library Starter is available under the MIT license. See the LICENSE file for more info. |
0 commit comments