@nativescript-community/gesturehandler 2.0.7 → 2.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md DELETED
@@ -1,361 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [2.0.7](https://github.com/nativescript-community/gesturehandler/compare/v2.0.6...v2.0.7) (2022-12-01)
7
-
8
- **Note:** Version bump only for package @nativescript-community/gesturehandler
9
-
10
-
11
-
12
-
13
-
14
- ## [2.0.6](https://github.com/nativescript-community/gesturehandler/compare/v2.0.5...v2.0.6) (2022-11-04)
15
-
16
- **Note:** Version bump only for package @nativescript-community/gesturehandler
17
-
18
- ## [2.0.5](https://github.com/nativescript-community/gesturehandler/compare/v2.0.4...v2.0.5) (2022-05-03)
19
-
20
- **Note:** Version bump only for package @nativescript-community/gesturehandler
21
-
22
- ## [2.0.4](https://github.com/nativescript-community/gesturehandler/compare/v2.0.3...v2.0.4) (2022-05-03)
23
-
24
- ### Bug Fixes
25
-
26
- - **android:** build fix with pnpm ([90b3a95](https://github.com/nativescript-community/gesturehandler/commit/90b3a953c8cf5f6ec2d488814c1e9d752591de3a))
27
-
28
- ## [2.0.3](https://github.com/nativescript-community/gesturehandler/compare/v2.0.2...v2.0.3) (2022-04-11)
29
-
30
- **Note:** Version bump only for package @nativescript-community/gesturehandler
31
-
32
- ## [2.0.2](https://github.com/nativescript-community/gesturehandler/compare/v2.0.1...v2.0.2) (2022-04-09)
33
-
34
- **Note:** Version bump only for package @nativescript-community/gesturehandler
35
-
36
- ## [2.0.1](https://github.com/nativescript-community/gesturehandler/compare/v0.2.2...v2.0.1) (2022-03-31)
37
-
38
- **Note:** Version bump only for package @nativescript-community/gesturehandler
39
-
40
- ## [0.2.2](https://github.com/nativescript-community/gesturehandler/compare/v0.2.1...v0.2.2) (2022-03-31)
41
-
42
- ### Bug Fixes
43
-
44
- - **android:** longpress not always recognized ([0ce2ce6](https://github.com/nativescript-community/gesturehandler/commit/0ce2ce681debb8f915467907c54fa9ec55a88f35))
45
-
46
- ## [0.2.1](https://github.com/nativescript-community/gesturehandler/compare/v0.2.0...v0.2.1) (2022-03-28)
47
-
48
- **Note:** Version bump only for package @nativescript-community/gesturehandler
49
-
50
- # [0.2.0](https://github.com/nativescript-community/gesturehandler/compare/v0.1.53...v0.2.0) (2022-03-28)
51
-
52
- ### Features
53
-
54
- - added `GestureRootView` to allow the plugin to work ([4167112](https://github.com/nativescript-community/gesturehandler/commit/4167112b698cf67bda568bce55cf647600ed5b78))
55
-
56
- ## [0.1.53](https://github.com/nativescript-community/gesturehandler/compare/v0.1.52...v0.1.53) (2022-03-25)
57
-
58
- **Note:** Version bump only for package @nativescript-community/gesturehandler
59
-
60
- ## [0.1.52](https://github.com/nativescript-community/gesturehandler/compare/v0.1.51...v0.1.52) (2022-02-17)
61
-
62
- ### Bug Fixes
63
-
64
- - **android:** buid fix in some cases ([a1b75ca](https://github.com/nativescript-community/gesturehandler/commit/a1b75ca008ef13d8a33009c3f8b271bb7f5f70e4))
65
-
66
- ## [0.1.51](https://github.com/nativescript-community/gesturehandler/compare/v0.1.50...v0.1.51) (2022-02-17)
67
-
68
- ### Bug Fixes
69
-
70
- - allow plugin to work with @akylas/nativescript fork ([aad3276](https://github.com/nativescript-community/gesturehandler/commit/aad3276d5abe54e79f9b955672007e2c67cb43fb))
71
-
72
- ## [0.1.50](https://github.com/nativescript-community/gesturehandler/compare/v0.1.49...v0.1.50) (2022-01-04)
73
-
74
- ### Bug Fixes
75
-
76
- - **ios:** build fix ([ce1a71e](https://github.com/nativescript-community/gesturehandler/commit/ce1a71e8b323e97394a468b2d7d6194495757169))
77
-
78
- ## [0.1.49](https://github.com/nativescript-community/gesturehandler/compare/v0.1.48...v0.1.49) (2022-01-04)
79
-
80
- ### Bug Fixes
81
-
82
- - **ios:** ensure `setEnabled` is available through JS for GestureHandler ([56ec946](https://github.com/nativescript-community/gesturehandler/commit/56ec94674699383160ff86ddf43a1edbe43bd506))
83
-
84
- ## [0.1.48](https://github.com/nativescript-community/gesturehandler/compare/v0.1.47...v0.1.48) (2021-10-11)
85
-
86
- **Note:** Version bump only for package @nativescript-community/gesturehandler
87
-
88
- ## [0.1.47](https://github.com/nativescript-community/gesturehandler/compare/v0.1.46...v0.1.47) (2021-09-22)
89
-
90
- ### Bug Fixes
91
-
92
- - **android:** fix after break in last version ([5d5ceb9](https://github.com/nativescript-community/gesturehandler/commit/5d5ceb9112a0b731e9779cd9b892da13ec4099a6))
93
-
94
- ## [0.1.46](https://github.com/nativescript-community/gesturehandler/compare/v0.1.45...v0.1.46) (2021-09-22)
95
-
96
- ### Bug Fixes
97
-
98
- - **android:** gradle 7.0 fix ([9b7de7f](https://github.com/nativescript-community/gesturehandler/commit/9b7de7ff377566a62efb3b5b0604c4669c66223e))
99
-
100
- ## [0.1.45](https://github.com/nativescript-community/gesturehandler/compare/v0.1.44...v0.1.45) (2021-06-04)
101
-
102
- ### Bug Fixes
103
-
104
- - **android:** NPE fix ([4c57840](https://github.com/nativescript-community/gesturehandler/commit/4c5784055974284849eb12749d59830ee22e1ee0))
105
-
106
- ## [0.1.44](https://github.com/nativescript-community/gesturehandler/compare/v0.1.43...v0.1.44) (2021-05-17)
107
-
108
- ### Bug Fixes
109
-
110
- - **android:** prevent crash ([65ce28a](https://github.com/nativescript-community/gesturehandler/commit/65ce28adbac2657dbd204e932757cc78db103874))
111
-
112
- ## [0.1.43](https://github.com/nativescript-community/gesturehandler/compare/v0.1.42...v0.1.43) (2021-05-12)
113
-
114
- ### Bug Fixes
115
-
116
- - **android:** allow touch through on non clickable view ([ee0bd9e](https://github.com/nativescript-community/gesturehandler/commit/ee0bd9e444ec1840e77d615111261ad174359de9))
117
-
118
- ## [0.1.42](https://github.com/nativescript-community/gesturehandler/compare/v0.1.41...v0.1.42) (2021-04-22)
119
-
120
- **Note:** Version bump only for package @nativescript-community/gesturehandler
121
-
122
- ## [0.1.41](https://github.com/nativescript-community/gesturehandler/compare/v0.1.40...v0.1.41) (2021-03-26)
123
-
124
- **Note:** Version bump only for package @nativescript-community/gesturehandler
125
-
126
- ## [0.1.40](https://github.com/nativescript-community/gesturehandler/compare/v0.1.39...v0.1.40) (2021-03-26)
127
-
128
- **Note:** Version bump only for package @nativescript-community/gesturehandler
129
-
130
- ## [0.1.39](https://github.com/nativescript-community/gesturehandler/compare/v0.1.38...v0.1.39) (2021-03-17)
131
-
132
- **Note:** Version bump only for package @nativescript-community/gesturehandler
133
-
134
- ## [0.1.38](https://github.com/nativescript-community/gesturehandler/compare/v0.1.37...v0.1.38) (2021-03-16)
135
-
136
- **Note:** Version bump only for package @nativescript-community/gesturehandler
137
-
138
- ## [0.1.37](https://github.com/nativescript-community/gesturehandler/compare/v0.1.36...v0.1.37) (2021-03-14)
139
-
140
- **Note:** Version bump only for package @nativescript-community/gesturehandler
141
-
142
- ## [0.1.36](https://github.com/nativescript-community/gesturehandler/compare/v0.1.35...v0.1.36) (2020-12-20)
143
-
144
- **Note:** Version bump only for package @nativescript-community/gesturehandler
145
-
146
- ## [0.1.35](https://github.com/nativescript-community/gesturehandler/compare/v0.1.34...v0.1.35) (2020-11-29)
147
-
148
- ### Bug Fixes
149
-
150
- - android ensure we cancel events correctly ([30ffce3](https://github.com/nativescript-community/gesturehandler/commit/30ffce318b0c4221501b1d6e23c219fc4a8ab356))
151
-
152
- ## [0.1.34](https://github.com/nativescript-community/gesturehandler/compare/v0.1.33...v0.1.34) (2020-11-23)
153
-
154
- **Note:** Version bump only for package @nativescript-community/gesturehandler
155
-
156
- ## [0.1.33](https://github.com/nativescript-community/gesturehandler/compare/v0.1.32...v0.1.33) (2020-11-22)
157
-
158
- **Note:** Version bump only for package @nativescript-community/gesturehandler
159
-
160
- ## [0.1.32](https://github.com/Akylas/nativescript-gesturehandler/compare/v0.1.31...v0.1.32) (2020-11-20)
161
-
162
- ### Bug Fixes
163
-
164
- - android bug fix when touch event could be dispatched after view destroyed ([36161cc](https://github.com/Akylas/nativescript-gesturehandler/commit/36161cc83762cec679fcaecb5dc8f147064abcd6))
165
-
166
- ## [0.1.31](https://github.com/Akylas/nativescript-gesturehandler/compare/v0.1.30...v0.1.31) (2020-11-19)
167
-
168
- **Note:** Version bump only for package @nativescript-community/gesturehandler
169
-
170
- ## [0.1.30](https://github.com/Akylas/nativescript-gesturehandler/compare/v0.1.29...v0.1.30) (2020-11-17)
171
-
172
- ### Bug Fixes
173
-
174
- - cleanup logs ([dbeca1d](https://github.com/Akylas/nativescript-gesturehandler/commit/dbeca1d5b7f663969469cd842aaaafd77d9773ef))
175
-
176
- ## [0.1.29](https://github.com/Akylas/nativescript-gesturehandler/compare/v0.1.28...v0.1.29) (2020-11-15)
177
-
178
- ### Bug Fixes
179
-
180
- - android fixes for native gestures ([c6321bb](https://github.com/Akylas/nativescript-gesturehandler/commit/c6321bb9ac0af4fe68636118cb334d548d4eafc6))
181
-
182
- ## [0.1.28](https://github.com/Akylas/nativescript-gesturehandler/compare/v0.1.27...v0.1.28) (2020-11-11)
183
-
184
- ### Bug Fixes
185
-
186
- - prevent unwanted and impossible touches on simulator ([8982fd1](https://github.com/Akylas/nativescript-gesturehandler/commit/8982fd1fecd62cecefe2e9adb0fb26ddcf655b0d))
187
-
188
- ## [0.1.27](https://github.com/Akylas/nativescript-gesturehandler/compare/v0.1.26...v0.1.27) (2020-11-06)
189
-
190
- ### Bug Fixes
191
-
192
- - new option shouldStartGesture ([f895fbb](https://github.com/Akylas/nativescript-gesturehandler/commit/f895fbb3049979de681dbeeb32a863d1482e5ecc))
193
-
194
- ## [0.1.26](https://github.com/Akylas/nativescript-gesturehandler/compare/v0.1.25...v0.1.26) (2020-10-21)
195
-
196
- **Note:** Version bump only for package @nativescript-community/gesturehandler
197
-
198
- ## [0.1.25](https://github.com/Akylas/nativescript-gesturehandler/compare/v0.1.24...v0.1.25) (2020-10-20)
199
-
200
- **Note:** Version bump only for package @nativescript-community/gesturehandler
201
-
202
- ## [0.1.24](https://github.com/Akylas/nativescript-gesturehandler/compare/v0.1.23...v0.1.24) (2020-10-20)
203
-
204
- **Note:** Version bump only for package @nativescript-community/gesturehandler
205
-
206
- ## [0.1.23](https://github.com/Akylas/nativescript-gesturehandler/compare/v0.1.22...v0.1.23) (2020-10-16)
207
-
208
- ### Bug Fixes
209
-
210
- - android fix taken from rn ([e8145e6](https://github.com/Akylas/nativescript-gesturehandler/commit/e8145e6339765679135ac22b6068977058a34fa8))
211
- - android nativeviewgesture dispatch cancel ([d5bb774](https://github.com/Akylas/nativescript-gesturehandler/commit/d5bb774f22beec6460e02cc1e87ff7e128080828))
212
-
213
- ## [0.1.22](https://github.com/Akylas/nativescript-gesturehandler/compare/v0.1.21...v0.1.22) (2020-09-09)
214
-
215
- ### Bug Fixes
216
-
217
- - dont bundle aar ([08e0b22](https://github.com/Akylas/nativescript-gesturehandler/commit/08e0b2207d95128326bc36cc7b7ed523dd811dd3))
218
-
219
- ## [0.1.21](https://github.com/Akylas/nativescript-gesturehandler/compare/v0.1.20...v0.1.21) (2020-09-09)
220
-
221
- ### Bug Fixes
222
-
223
- - **ios:** plugin not building ([153403f](https://github.com/Akylas/nativescript-gesturehandler/commit/153403f77c1f23b5105c3e17f9d9bcbffb32b005))
224
-
225
- ## [0.1.20](https://github.com/Akylas/nativescript-gesturehandler/compare/v0.1.19...v0.1.20) (2020-09-08)
226
-
227
- **Note:** Version bump only for package @nativescript-community/gesturehandler
228
-
229
- ## [0.1.19](https://github.com/Akylas/nativescript-gesturehandler/compare/v0.1.18...v0.1.19) (2020-09-06)
230
-
231
- ### Bug Fixes
232
-
233
- - **android:** plugin not compiling ([d84b471](https://github.com/Akylas/nativescript-gesturehandler/commit/d84b471fdfd9901864242bda4c8f08147188b76b))
234
-
235
- ## [0.1.18](https://github.com/Akylas/nativescript-gesturehandler/compare/v0.1.17...v0.1.18) (2020-09-06)
236
-
237
- **Note:** Version bump only for package @nativescript-community/gesturehandler
238
-
239
- ## [0.1.17](https://github.com/Akylas/nativescript-gesturehandler/compare/v0.1.16...v0.1.17) (2020-09-05)
240
-
241
- **Note:** Version bump only for package @nativescript-community/gesturehandler
242
-
243
- ## [0.1.16](https://github.com/nativescript-community/gesturehandler/compare/v0.1.15...v0.1.16) (2020-05-28)
244
-
245
- **Note:** Version bump only for package @nativescript-community/gesturehandler
246
-
247
- ## [0.1.15](https://github.com/nativescript-community/gesturehandler/compare/v0.1.14...v0.1.15) (2020-05-21)
248
-
249
- **Note:** Version bump only for package @nativescript-community/gesturehandler
250
-
251
- ## [0.1.14](https://github.com/nativescript-community/gesturehandler/compare/v0.1.13...v0.1.14) (2020-05-21)
252
-
253
- ### Bug Fixes
254
-
255
- - sideEffects for tree shacking ([6c69498](https://github.com/nativescript-community/gesturehandler/commit/6c6949809142f75429ff1745b1a2298b21d85ad6))
256
-
257
- ## [0.1.13](https://github.com/nativescript-community/gesturehandler/compare/v0.1.12...v0.1.13) (2020-05-21)
258
-
259
- **Note:** Version bump only for package @nativescript-community/gesturehandler
260
-
261
- ## [0.1.12](https://github.com/nativescript-community/gesturehandler/compare/v0.1.11...v0.1.12) (2020-05-21)
262
-
263
- ### Bug Fixes
264
-
265
- - full esm support ([ee732cf](https://github.com/nativescript-community/gesturehandler/commit/ee732cf3c568045059fe10e5593c0f732a2a40b1))
266
-
267
- ## [0.1.11](https://github.com/nativescript-community/gesturehandler/compare/v0.1.10...v0.1.11) (2020-05-12)
268
-
269
- **Note:** Version bump only for package @nativescript-community/gesturehandler
270
-
271
- ## [0.1.10](https://github.com/nativescript-community/gesturehandler/compare/v0.1.9...v0.1.10) (2020-05-12)
272
-
273
- **Note:** Version bump only for package @nativescript-community/gesturehandler
274
-
275
- ## [0.1.9](https://github.com/nativescript-community/gesturehandler/compare/v0.1.8...v0.1.9) (2020-05-12)
276
-
277
- **Note:** Version bump only for package @nativescript-community/gesturehandler
278
-
279
- ## [0.1.8](https://github.com/nativescript-community/gesturehandler/compare/v0.1.7...v0.1.8) (2020-04-28)
280
-
281
- **Note:** Version bump only for package @nativescript-community/gesturehandler
282
-
283
- ## [0.1.7](https://github.com/nativescript-community/gesturehandler/compare/v0.1.6...v0.1.7) (2020-03-20)
284
-
285
- **Note:** Version bump only for package @nativescript-community/gesturehandler
286
-
287
- ## [0.1.6](https://github.com/nativescript-community/gesturehandler/compare/v0.1.5...v0.1.6) (2020-01-17)
288
-
289
- **Note:** Version bump only for package @nativescript-community/gesturehandler
290
-
291
- ## [0.1.5](https://github.com/nativescript-community/gesturehandler/compare/v0.1.4...v0.1.5) (2020-01-17)
292
-
293
- **Note:** Version bump only for package @nativescript-community/gesturehandler
294
-
295
- ## [0.1.4](https://github.com/nativescript-community/gesturehandler/compare/v0.1.3...v0.1.4) (2020-01-13)
296
-
297
- **Note:** Version bump only for package @nativescript-community/gesturehandler
298
-
299
- ## [0.1.3](https://github.com/nativescript-community/gesturehandler/compare/v0.1.2...v0.1.3) (2020-01-13)
300
-
301
- **Note:** Version bump only for package @nativescript-community/gesturehandler
302
-
303
- ## [0.1.2](https://github.com/nativescript-community/gesturehandler/compare/v0.1.1...v0.1.2) (2020-01-11)
304
-
305
- **Note:** Version bump only for package @nativescript-community/gesturehandler
306
-
307
- ## [0.1.1](https://github.com/nativescript-community/gesturehandler/compare/v0.1.0...v0.1.1) (2020-01-07)
308
-
309
- **Note:** Version bump only for package @nativescript-community/gesturehandler
310
-
311
- # [0.1.0](https://github.com/nativescript-community/gesturehandler/compare/v0.0.11...v0.1.0) (2020-01-01)
312
-
313
- ### Features
314
-
315
- - use @nativescript-community/observable ([a62eb62](https://github.com/nativescript-community/gesturehandler/commit/a62eb62ef42f928cdf768e8f96a765010daf7db3))
316
-
317
- ## [0.0.11](https://github.com/nativescript-community/gesturehandler/compare/v0.0.10...v0.0.11) (2019-12-29)
318
-
319
- **Note:** Version bump only for package @nativescript-community/gesturehandler
320
-
321
- ## [0.0.10](https://github.com/nativescript-community/gesturehandler/compare/v0.0.9...v0.0.10) (2019-12-29)
322
-
323
- **Note:** Version bump only for package @nativescript-community/gesturehandler
324
-
325
- ## [0.0.9](https://github.com/nativescript-community/gesturehandler/compare/v0.0.8...v0.0.9) (2019-12-29)
326
-
327
- **Note:** Version bump only for package @nativescript-community/gesturehandler
328
-
329
- ## [0.0.8](https://github.com/nativescript-community/gesturehandler/compare/v0.0.7...v0.0.8) (2019-08-11)
330
-
331
- **Note:** Version bump only for package @nativescript-community/gesturehandler
332
-
333
- ## [0.0.7](https://github.com/nativescript-community/gesturehandler/compare/v0.0.6...v0.0.7) (2019-07-24)
334
-
335
- **Note:** Version bump only for package @nativescript-community/gesturehandler
336
-
337
- ## [0.0.6](https://github.com/nativescript-community/gesturehandler/compare/v0.0.5...v0.0.6) (2019-07-19)
338
-
339
- **Note:** Version bump only for package @nativescript-community/gesturehandler
340
-
341
- ## [0.0.5](https://github.com/nativescript-community/gesturehandler/compare/v0.0.4...v0.0.5) (2019-07-09)
342
-
343
- ### Bug Fixes
344
-
345
- - remove wrong dependencies ([26946c2](https://github.com/nativescript-community/gesturehandler/commit/26946c2))
346
-
347
- ## [0.0.4](https://github.com/nativescript-community/gesturehandler/compare/v0.0.3...v0.0.4) (2019-06-12)
348
-
349
- **Note:** Version bump only for package @nativescript-community/gesturehandler
350
-
351
- ## [0.0.3](https://github.com/nativescript-community/gesturehandler/compare/v0.0.2...v0.0.3) (2019-06-12)
352
-
353
- **Note:** Version bump only for package @nativescript-community/gesturehandler
354
-
355
- ## [0.0.2](https://github.com/nativescript-community/gesturehandler/compare/v0.0.1...v0.0.2) (2019-06-12)
356
-
357
- **Note:** Version bump only for package @nativescript-community/gesturehandler
358
-
359
- ## 0.0.1 (2019-06-11)
360
-
361
- **Note:** Version bump only for package @nativescript-community/gesturehandler
package/blueprint.md DELETED
@@ -1,74 +0,0 @@
1
- {{ load:../../tools/readme/edit-warning.md }}
2
- {{ template:title }}
3
- {{ template:badges }}
4
- {{ template:description }}
5
-
6
- {{ template:toc }}
7
-
8
- ## Installation
9
- Run the following command from the root of your project:
10
-
11
- `ns plugin add {{ pkg.name }}`
12
-
13
- ## API
14
-
15
- We need to do some wiring when your app starts, so open `app.ts` and add this before creating any View/App/Frame:
16
- ##### TypeScript
17
- ```ts
18
- import { install } from "@nativescript-community/gesturehandler";
19
- install();
20
- ```
21
-
22
- You create a gesture handler using something like this:
23
- ```typescript
24
- import { GestureHandlerTouchEvent, GestureHandlerStateEvent, GestureStateEventData, GestureTouchEventData, HandlerType } from '@nativescript-community/gesturehandler';
25
-
26
-
27
- function onGestureTouch(args: GestureTouchEventData) {
28
- const { state, extraData, view } = args.data;
29
- view.translateX = extraData.translationX;
30
- view.translateY = extraData.translationY;
31
- }
32
- function onGestureState(args: GestureStateEventData) {
33
- const { state, prevState, extraData, view } = args.data;
34
- console.log('onGestureState', state, prevState, view, extraData);
35
- }
36
- const manager = Manager.getInstance();
37
- const gestureHandler = = manager.createGestureHandler(HandlerType.PAN, 10, {
38
- shouldCancelWhenOutside: false
39
- });
40
- gestureHandler.on(GestureHandlerTouchEvent, onGestureTouch, this);
41
- gestureHandler.on(GestureHandlerStateEvent, onGestureState, this);
42
- gestureHandler.attachToView(view);
43
- ```
44
-
45
- Right now you must not forget to store the ```gestureHandler``` somewhere or the gesture won't work on iOS (native object being released). This will be fixed in future versions.
46
-
47
- Now about the API. All the gestures for the react counterpart exist with the same options and the same event ```extraData```.
48
-
49
- ## GestureRootView
50
-
51
- For the gestures to work correctly we need a `root` view which knows how to handle the gestures.
52
- If using `Page` (thus `Frame`) you don't need to do anything.
53
- In case you don't (drawer root view, modals, ...) then you can wrap your views in a `GestureRootView` which inherits `GridLayout`
54
-
55
- ## Overriding Nativescript gestures
56
-
57
- This plugin can also override N gestures completely. This would give much more control over gestures and especially would allow to correctly handle simultaneous gestures likes `tap` and `longpress`
58
-
59
- To do that
60
-
61
- ## Credits
62
-
63
- This is a port of [react-native-gesturehandler](https://kmagiera.github.io/react-native-gesture-handler/).
64
- The source is based on the source code by [Krzysztof Magiera](https://github.com/kmagiera). Dont hesitate to go and thank him for his work!
65
-
66
-
67
-
68
- ### Examples:
69
-
70
- - [Basic](demo-snippets/vue/Basic.vue)
71
- - A basic example showing that overriding N gestures works, even in modals
72
-
73
- {{ load:../../tools/readme/demos-and-development.md }}
74
- {{ load:../../tools/readme/questions.md }}
package/react/index.d.ts DELETED
@@ -1,20 +0,0 @@
1
- import * as React from 'react';
2
- import { GridLayoutAttributes, NSVElement, NativeScriptProps } from 'react-nativescript';
3
- import { Color, View } from '@nativescript/core';
4
- import { Drawer as NativeScriptDrawer } from '..';
5
- export declare function registerDrawer(): void;
6
- interface DrawerAttributes extends GridLayoutAttributes {
7
- backdropColor?: Color;
8
- gestureEnabled?: boolean;
9
- leftDrawer?: View;
10
- mainContent?: View;
11
- }
12
- declare global {
13
- namespace JSX {
14
- interface IntrinsicElements {
15
- drawer: NativeScriptProps<DrawerAttributes, NativeScriptDrawer>;
16
- }
17
- }
18
- }
19
- export declare const Drawer: React.ForwardRefExoticComponent<Pick<NativeScriptProps<DrawerAttributes, NativeScriptDrawer>, "style" | "nodeRole" | "children" | "key" | keyof DrawerAttributes> & React.RefAttributes<NSVElement<NativeScriptDrawer>>>;
20
- export {};
package/react/index.js DELETED
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- import { NSVElement, registerElement } from 'react-nativescript';
3
- import { Color, View } from '@nativescript/core';
4
- import { Mode, Drawer as NativeScriptDrawer, Side } from '..';
5
- export function registerDrawer() {
6
- registerElement('drawer', () => require('../').Drawer);
7
- }
8
- export const Drawer = React.forwardRef((props, ref) => React.createElement("drawer", Object.assign({}, props, { ref: ref })));
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["react/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAwB,UAAU,EAAqB,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1G,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,kBAAkB,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAE9D,MAAM,UAAU,cAAc;IAC1B,eAAe,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;AAC3D,CAAC;AAiBD,MAAM,CAAC,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CAA0F,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,gDAAY,KAAK,IAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC"}
package/svelte/index.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import { NativeViewElementNode } from 'svelte-native/dom';
2
- import { Drawer, Side } from '../';
3
- export default class DrawerElement extends NativeViewElementNode<Drawer> {
4
- constructor();
5
- private get _drawer();
6
- close(side?: Side): void;
7
- isOpened(side?: Side): boolean;
8
- open(side?: Side): void;
9
- toggle(side?: Side): void;
10
- static register(): void;
11
- }
package/svelte/index.js DELETED
@@ -1,26 +0,0 @@
1
- import { NativeViewElementNode, registerElement } from 'svelte-native/dom';
2
- import { Drawer, Side } from '../';
3
- export default class DrawerElement extends NativeViewElementNode {
4
- constructor() {
5
- super('drawer', Drawer);
6
- }
7
- get _drawer() {
8
- return this.nativeView;
9
- }
10
- close(side) {
11
- this._drawer.close(side);
12
- }
13
- isOpened(side) {
14
- return this._drawer.isOpened(side);
15
- }
16
- open(side) {
17
- this._drawer.open(side);
18
- }
19
- toggle(side) {
20
- this._drawer.toggle(side);
21
- }
22
- static register() {
23
- registerElement('drawer', () => new DrawerElement());
24
- }
25
- }
26
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["svelte/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAEnC,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,qBAA6B;IACpE;QACI,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAC5B,CAAC;IAED,IAAY,OAAO;QACf,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,IAAW;QACb,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IAED,QAAQ,CAAC,IAAW;QAChB,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAED,IAAI,CAAC,IAAW;QACZ,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAED,MAAM,CAAC,IAAW;QACd,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;IAED,MAAM,CAAC,QAAQ;QACX,eAAe,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,aAAa,EAAE,CAAC,CAAC;IACzD,CAAC;CACJ"}
package/tsconfig.json DELETED
@@ -1,13 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "rootDir": "../../src/gesturehandler",
5
- "outDir": "./",
6
- "paths": {
7
- "tns-core-modules": ["./node_modules/@nativescript/core"],
8
- "tns-core-modules/*": ["./node_modules/@nativescript/core/*"]
9
- }
10
- },
11
- "include": ["../../src/gesturehandler/**/*", "../../references.d.ts", "../../src/references.d.ts"],
12
- "exclude": ["../../src/gesturehandler/angular/**"]
13
- }