Skip to content

Commit 3eaa025

Browse files
committed
Spinner is implemented
1 parent 53fb4ee commit 3eaa025

24 files changed

+9031
-40
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,14 @@ npm i @paraboly/react-native-input-bar
3232
```js
3333
"react": ">= 16.x.x",
3434
"react-native": ">= 0.55.x",
35+
"react-native-spinkit": ">= 1.5.0",
3536
"react-native-androw": ">= 0.0.34",
3637
"react-native-vector-icons": ">= 6.6.0",
3738
"react-native-dynamic-vector-icons": ">= 0.2.1"
3839
```
3940

41+
### Note: Do not for get to `pod install` for installing properly SpinKit
42+
4043
# Usage
4144

4245
### InputBar should stay at the bottom therefore, please do not forget to set `flex: 1` on your main container. Example is available for the real usage.
@@ -79,10 +82,16 @@ import InputBar from "@paraboly/react-native-input-bar";
7982
| secondaryIconColor | string | #9da1ab | change the secondary icon's color |
8083
| secondaryIconSize | number | 21 | change the secondary icon's size |
8184
| secondaryIconOnPress | function | undefined | set a function when secondary icon is on pressed |
85+
| spinnerVisibility | boolean | false | make the spinner visible instead of primarty icon |
86+
| spinnerType | string | FadingCircleAlt | change the spinner type |
87+
| spinnerSize | number | 20 | change the spinner number |
88+
| spinnerColor | color | #9da1ab | change the spinner color |
89+
| spinnerStyle | style | undefined | set your own style for spinner |
8290

8391
## Roadmap
8492

8593
- [x] ~~LICENSE~~
94+
- [ ] Optional Spinkit for secondary icon
8695
- [ ] Better Example
8796

8897
## Credits

example/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const App = () => {
1111
flex: 1
1212
}}
1313
>
14-
<InputBar />
14+
<InputBar spinnerVisibility={false} />
1515
</SafeAreaView>
1616
</>
1717
);

example/android/app/src/main/assets/index.android.bundle

Lines changed: 581 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "example",
3+
"displayName": "example"
4+
}
Lines changed: 300 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,300 @@
1+
{
2+
"stepforward": 58880,
3+
"stepbackward": 58881,
4+
"forward": 58882,
5+
"banckward": 58883,
6+
"caretright": 58884,
7+
"caretleft": 58885,
8+
"caretdown": 58886,
9+
"caretup": 58887,
10+
"rightcircle": 58888,
11+
"leftcircle": 58889,
12+
"upcircle": 58890,
13+
"downcircle": 58891,
14+
"rightcircleo": 58892,
15+
"leftcircleo": 58893,
16+
"upcircleo": 58894,
17+
"downcircleo": 58895,
18+
"verticleleft": 58896,
19+
"verticleright": 58897,
20+
"back": 58898,
21+
"retweet": 58899,
22+
"shrink": 58900,
23+
"arrowsalt": 58901,
24+
"doubleright": 58903,
25+
"doubleleft": 58904,
26+
"arrowdown": 58905,
27+
"arrowup": 58906,
28+
"arrowright": 58907,
29+
"arrowleft": 58908,
30+
"down": 58909,
31+
"up": 58910,
32+
"right": 58911,
33+
"left": 58912,
34+
"minussquareo": 58913,
35+
"minuscircle": 58914,
36+
"minuscircleo": 58915,
37+
"minus": 58916,
38+
"pluscircleo": 58917,
39+
"pluscircle": 58918,
40+
"plus": 58919,
41+
"infocirlce": 58920,
42+
"infocirlceo": 58921,
43+
"info": 58922,
44+
"exclamation": 58923,
45+
"exclamationcircle": 58924,
46+
"exclamationcircleo": 58925,
47+
"closecircle": 58926,
48+
"closecircleo": 58927,
49+
"checkcircle": 58928,
50+
"checkcircleo": 58929,
51+
"check": 58930,
52+
"close": 58931,
53+
"customerservice": 58932,
54+
"creditcard": 58933,
55+
"codesquareo": 58934,
56+
"book": 58935,
57+
"barschart": 58936,
58+
"bars": 58937,
59+
"question": 58938,
60+
"questioncircle": 58939,
61+
"questioncircleo": 58940,
62+
"pause": 58941,
63+
"pausecircle": 58942,
64+
"pausecircleo": 58943,
65+
"clockcircle": 58944,
66+
"clockcircleo": 58945,
67+
"swap": 58946,
68+
"swapleft": 58947,
69+
"swapright": 58948,
70+
"plussquareo": 58949,
71+
"frown": 58950,
72+
"menufold": 58968,
73+
"mail": 58969,
74+
"link": 58971,
75+
"areachart": 58972,
76+
"linechart": 58973,
77+
"home": 58974,
78+
"laptop": 58975,
79+
"star": 58976,
80+
"staro": 58977,
81+
"filter": 58979,
82+
"meho": 58982,
83+
"meh": 58983,
84+
"shoppingcart": 58984,
85+
"save": 58985,
86+
"user": 58986,
87+
"videocamera": 58987,
88+
"totop": 58988,
89+
"team": 58989,
90+
"sharealt": 58993,
91+
"setting": 58994,
92+
"picture": 58996,
93+
"phone": 58997,
94+
"paperclip": 58998,
95+
"notification": 58999,
96+
"menuunfold": 59001,
97+
"inbox": 59002,
98+
"lock": 59003,
99+
"qrcode": 59004,
100+
"tags": 59005,
101+
"tagso": 59006,
102+
"cloudo": 59007,
103+
"cloud": 59008,
104+
"cloudupload": 59009,
105+
"clouddownload": 59010,
106+
"clouddownloado": 59011,
107+
"clouduploado": 59012,
108+
"enviroment": 59013,
109+
"enviromento": 59014,
110+
"eye": 59015,
111+
"eyeo": 59016,
112+
"camera": 59017,
113+
"camerao": 59018,
114+
"windows": 59019,
115+
"export2": 59024,
116+
"export": 59025,
117+
"circledowno": 59027,
118+
"circledown": 59028,
119+
"hdd": 59034,
120+
"ie": 59035,
121+
"delete": 59039,
122+
"enter": 59040,
123+
"pushpino": 59041,
124+
"pushpin": 59042,
125+
"heart": 59043,
126+
"hearto": 59044,
127+
"smile-circle": 59047,
128+
"smileo": 59048,
129+
"frowno": 59049,
130+
"calculator": 59050,
131+
"chrome": 59052,
132+
"github": 59053,
133+
"iconfontdesktop": 59060,
134+
"caretcircleoup": 59061,
135+
"upload": 59062,
136+
"download": 59063,
137+
"piechart": 59064,
138+
"lock1": 59065,
139+
"unlock": 59066,
140+
"windowso": 59068,
141+
"dotchart": 59069,
142+
"barchart": 59070,
143+
"codesquare": 59071,
144+
"plussquare": 59072,
145+
"minussquare": 59073,
146+
"closesquare": 59074,
147+
"closesquareo": 59075,
148+
"checksquare": 59076,
149+
"checksquareo": 59077,
150+
"fastbackward": 59078,
151+
"fastforward": 59079,
152+
"upsquare": 59080,
153+
"downsquare": 59081,
154+
"leftsquare": 59082,
155+
"rightsquare": 59083,
156+
"rightsquareo": 59084,
157+
"leftsquareo": 59085,
158+
"down-square-o": 59086,
159+
"up-square-o": 59087,
160+
"play": 59088,
161+
"playcircleo": 59089,
162+
"tag": 59090,
163+
"tago": 59091,
164+
"addfile": 59664,
165+
"folder1": 58978,
166+
"file1": 58980,
167+
"switcher": 59667,
168+
"addfolder": 59668,
169+
"folderopen": 59033,
170+
"search1": 58992,
171+
"ellipsis1": 58951,
172+
"calendar": 59067,
173+
"filetext1": 59032,
174+
"copy1": 58952,
175+
"jpgfile1": 59036,
176+
"pdffile1": 59059,
177+
"exclefile1": 59056,
178+
"pptfile1": 59057,
179+
"unknowfile1": 59055,
180+
"wordfile1": 59058,
181+
"dingding": 59683,
182+
"dingding-o": 59685,
183+
"mobile1": 59000,
184+
"tablet1": 58990,
185+
"bells": 58958,
186+
"disconnect": 58959,
187+
"database": 58960,
188+
"barcode": 58962,
189+
"hourglass": 58963,
190+
"key": 58964,
191+
"flag": 58965,
192+
"layout": 58966,
193+
"printer": 58995,
194+
"USB": 59095,
195+
"skin": 59096,
196+
"tool": 59097,
197+
"car": 59100,
198+
"addusergroup": 59101,
199+
"carryout": 59103,
200+
"deleteuser": 59104,
201+
"deleteusergroup": 59105,
202+
"man": 59106,
203+
"isv": 59107,
204+
"gift": 59108,
205+
"idcard": 59109,
206+
"medicinebox": 59110,
207+
"redenvelopes": 59111,
208+
"rest": 59112,
209+
"Safety": 59114,
210+
"wallet": 59115,
211+
"woman": 59116,
212+
"adduser": 59117,
213+
"bank": 59118,
214+
"Trophy": 59119,
215+
"loading1": 59054,
216+
"loading2": 58957,
217+
"like2": 59037,
218+
"dislike2": 59038,
219+
"like1": 58956,
220+
"dislike1": 58955,
221+
"bulb1": 58953,
222+
"rocket1": 59663,
223+
"select1": 58954,
224+
"apple1": 59020,
225+
"apple-o": 59092,
226+
"android1": 59704,
227+
"android": 59021,
228+
"aliwangwang-o1": 59023,
229+
"aliwangwang": 59022,
230+
"pay-circle1": 59045,
231+
"pay-circle-o1": 59046,
232+
"poweroff": 59093,
233+
"trademark": 58961,
234+
"find": 59099,
235+
"copyright": 59102,
236+
"sound": 59113,
237+
"earth": 59121,
238+
"wifi": 59094,
239+
"sync": 59098,
240+
"login": 58967,
241+
"logout": 58970,
242+
"reload1": 58902,
243+
"message1": 59051,
244+
"shake": 59727,
245+
"API": 59729,
246+
"appstore-o": 59029,
247+
"appstore1": 59030,
248+
"scan1": 59031,
249+
"exception1": 58981,
250+
"contacts": 59120,
251+
"solution1": 58991,
252+
"fork": 59122,
253+
"edit": 59026,
254+
"form": 59798,
255+
"warning": 59799,
256+
"table": 59800,
257+
"profile": 59801,
258+
"dashboard": 59802,
259+
"indent-left": 59814,
260+
"indent-right": 59815,
261+
"menu-unfold": 59820,
262+
"menu-fold": 59821,
263+
"antdesign": 59826,
264+
"alipay-square": 59827,
265+
"codepen-circle": 59828,
266+
"google": 59829,
267+
"amazon": 59830,
268+
"codepen": 59831,
269+
"facebook-square": 59832,
270+
"dropbox": 59833,
271+
"googleplus": 59834,
272+
"linkedin-square": 59835,
273+
"medium-monogram": 59836,
274+
"gitlab": 59837,
275+
"medium-wordmark": 59838,
276+
"QQ": 59839,
277+
"skype": 59840,
278+
"taobao-square": 59841,
279+
"alipay-circle": 59842,
280+
"youtube": 59843,
281+
"wechat": 59844,
282+
"twitter": 59845,
283+
"weibo": 59846,
284+
"HTML": 59847,
285+
"taobao-circle": 59123,
286+
"weibo-circle": 59124,
287+
"weibo-square": 59125,
288+
"CodeSandbox": 59860,
289+
"aliyun": 59892,
290+
"zhihu": 59139,
291+
"behance": 59143,
292+
"dribbble": 59145,
293+
"dribbble-square": 59146,
294+
"behance-square": 59144,
295+
"file-markdown": 59140,
296+
"instagram": 59147,
297+
"yuque": 59148,
298+
"slack": 59141,
299+
"slack-square": 59142
300+
}

0 commit comments

Comments
 (0)