|
1 | | -<img alt="React Native Typescript Library Starter" src="assets/logo.png" width="1050"/> |
| 1 | +<img alt="React Native Progressive Fast Image" 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-progressive-fast-image) |
4 | 4 |
|
5 | | -[](https://github.com/WrathChaos/react-native-typescript-library-starter) |
| 5 | +[](https://github.com/WrathChaos/@freakycoder/react-native-progressive-fast-image) |
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-progressive-fast-image) |
| 8 | +[](https://www.npmjs.com/package/@freakycoder/react-native-progressive-fast-image) |
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" |
15 | | - src="assets/Screenshots/typescript.jpg" /> |
| 14 | + <img alt="React Native Progressive Fast Image" |
| 15 | + src="assets/Screenshots/React-Native-Progressive-Fast-Image.gif" /> |
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 |
| 23 | +npm i @freakycoder/react-native-progressive-fast-image |
46 | 24 | ``` |
47 | 25 |
|
48 | 26 | ## Peer Dependencies |
49 | 27 |
|
50 | 28 | <h5><i>IMPORTANT! You need install them</i></h5> |
51 | 29 |
|
52 | 30 | ```js |
53 | | -"react": ">= 16.x.x", |
54 | | -"react-native": ">= 0.55.x", |
| 31 | +"react-native-fast-image": ">= 8.3.2" |
55 | 32 | ``` |
56 | 33 |
|
57 | 34 | # Usage |
58 | 35 |
|
59 | 36 | ## Import |
60 | 37 |
|
61 | 38 | ```jsx |
62 | | -import MyComponent from "react-native-typescript-library-starter"; |
| 39 | +import ProgressiveFastImage from "@freakycoder/react-native-progressive-fast-image"; |
63 | 40 | ``` |
64 | 41 |
|
65 | 42 | ## Fundamental Usage |
66 | 43 |
|
| 44 | +It accepts every `Image` and `FastImage` props. You can use it like you used to. |
| 45 | + |
67 | 46 | ```jsx |
68 | | -<MyComponent /> |
| 47 | +<ProgressiveFastImage |
| 48 | + source={require("./assets/my-image.png")} |
| 49 | + thumbnailSource={require("./assets/my-image.png")} |
| 50 | +/> |
69 | 51 | ``` |
70 | 52 |
|
71 | 53 | # Configuration - Props |
72 | 54 |
|
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 | |
| 55 | +| Property | Type | Default | Description | |
| 56 | +| --------------- | :---: | :-------: | ------------------------------------- | |
| 57 | +| source | image | undefined | set the main source of the image | |
| 58 | +| thumbnailSource | image | undefined | set the thumbnail source of the image | |
79 | 59 |
|
80 | 60 | ## Future Plans |
81 | 61 |
|
82 | 62 | - [x] ~~LICENSE~~ |
83 | 63 | - [ ] Write an article about the lib on Medium |
84 | 64 |
|
85 | | -# Change Log |
86 | | - |
87 | | -Change log will be here ! |
88 | | - |
89 | 65 | ## Author |
90 | 66 |
|
91 | 67 | FreakyCoder, kurayogun@gmail.com |
92 | 68 |
|
93 | 69 | ## License |
94 | 70 |
|
95 | | -React Native Typescript Library Starter is available under the MIT license. See the LICENSE file for more info. |
| 71 | +React Native Progressive Fast Image is available under the MIT license. See the LICENSE file for more info. |
0 commit comments