You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***ios:** gesture override more in line with N ([fb3744d](https://github.com/nativescript-community/gesturehandler/commit/fb3744d274aa5fa659450f1c1b58c73e26d12d3a))
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.
114
+
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.
112
115
113
-
Now about the API. All the gestures for the react counterpart exist with the same options and the same event ```extraData```.
116
+
Now about the API. All the gestures for the react counterpart exist with the same options and the same event `extraData`.
114
117
115
118
116
119
[](#gesturerootview)
@@ -132,7 +135,7 @@ In case you don't (drawer root view, modals, ...) then you can wrap your views i
132
135
133
136
## Overriding Nativescript gestures
134
137
135
-
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`
138
+
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`.
136
139
137
140
To do that
138
141
@@ -145,9 +148,7 @@ To do that
145
148
## Credits
146
149
147
150
This is a port of [react-native-gesturehandler](https://kmagiera.github.io/react-native-gesture-handler/).
148
-
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!
149
-
150
-
151
+
The source is based on the source code by [Krzysztof Magiera](https://github.com/kmagiera). Don't hesitate to go and thank him for his work!
151
152
152
153
### Examples:
153
154
@@ -262,6 +263,7 @@ One easy solution is t modify `~/.gitconfig` and add
262
263
263
264
If you have any questions/issues/comments please feel free to create an issue or start a conversation in the [NativeScript Community Discord](https://nativescript.org/discord).
<aid="md:api" class="tsd-anchor"></a><h2><ahref="#md:api">API</a></h2><p>We need to do some wiring when your app starts, so open <code>app.ts</code> and add this before creating any View/App/Frame:</p>
<p>Right now you must not forget to store the <code>gestureHandler</code> somewhere or the gesture won't work on iOS (native object being released). This will be fixed in future versions.</p>
77
77
<p>Now about the API. All the gestures for the react counterpart exist with the same options and the same event <code>extraData</code>.</p>
In case you don't (drawer root view, modals, ...) then you can wrap your views in a <code>GestureRootView</code> which inherits <code>GridLayout</code></p>
<aid="md:overriding-nativescript-gestures" class="tsd-anchor"></a><h2><ahref="#md:overriding-nativescript-gestures">Overriding Nativescript gestures</a></h2><p>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 <code>tap</code> and <code>longpress</code></p>
85
+
<aid="md:overriding-nativescript-gestures" class="tsd-anchor"></a><h2><ahref="#md:overriding-nativescript-gestures">Overriding Nativescript gestures</a></h2><p>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 <code>tap</code> and <code>longpress</code>.</p>
86
86
<p>To do that </p>
87
87
<p><ahref="#md:credits"></a></p>
88
88
<p><ahref="#md:credits"></a></p>
89
89
<aid="md:credits" class="tsd-anchor"></a><h2><ahref="#md:credits">Credits</a></h2><p>This is a port of <ahref="https://kmagiera.github.io/react-native-gesture-handler/">react-native-gesturehandler</a>.
90
-
The source is based on the source code by <ahref="https://github.com/kmagiera">Krzysztof Magiera</a>. Dont hesitate to go and thank him for his work!</p>
90
+
The source is based on the source code by <ahref="https://github.com/kmagiera">Krzysztof Magiera</a>. Don't hesitate to go and thank him for his work!</p>
0 commit comments