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
Copy file name to clipboardExpand all lines: packages/docs-gesture-handler/docs/guides/troubleshooting.mdx
+47-34Lines changed: 47 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,22 +4,22 @@ title: Troubleshooting
4
4
sidebar_position: 3
5
5
---
6
6
7
+
importTabsfrom'@theme/Tabs';
8
+
importTabItemfrom'@theme/TabItem';
9
+
7
10
## Troubleshooting
8
11
9
12
Thanks for giving this library a try! We are sorry that you might have encountered issues though. Here is how you can seek help:
10
13
11
14
1. Search over the [issues on Github](https://github.com/software-mansion/react-native-gesture-handler/issues). There is a chance someone had this problem in the past and it has been resolved!
12
15
2. When sure your problem hasn't been reported or was reported but the proposed solution doesn't work for you please follow [our issue reporting guidelines](#reporting-issues).
13
16
3. You can try seeking help on [Software Mansion Discord](https://discord.com/invite/VemJ4df8Yr).
14
-
4. If you feel like reading the source code I highly recommend it, as this is by far the best resource and gives you the most up to date insights into how the library works and what might be causing the bug.
17
+
4. If you feel like reading the source code we highly recommend it, as this is by far the best resource and gives you the most up to date insights into how the library works and what might be causing the bug.
15
18
5. If you managed to find the solution consider [contributing](/docs/#contributing) a fix or update our documentation to make this information easier to find for the others in the future.
16
19
17
20
## Reporting issues
18
21
19
-
This library is maintained by a very small team.
20
-
Please be mindful of that when reporting issue and when it happens that we can't get back to you as soon as you might expect.
21
-
We would love to fix all the problems as soon as possible, but often our time is constraint with other issues/features or projects.
22
-
To make it easier for us to understand your issue and to be able to approach it sooner you can help by:
22
+
This library is maintained by a very small team. Please keep this in mind when reporting issues, as we may not be able to respond as quickly as you might expect. We strive to address all problems as soon as possible, but our time is often constrained by other issues, features, or projects. To help us understand and address your issue more promptly, you can assist by:
23
23
24
24
- Making sure the issue description is complete. Please include all the details about your environment (library version, RN version, device OS etc).
25
25
- It is the best to provide an example app that reproduces the issue you are having. Put it up on [gist](https://gist.github.com/), [snack](https://snack.expo.io) or create a repo on Github – it doesn't matter as long as we can easily pull it in, run and see the issue.
@@ -32,44 +32,57 @@ To make it easier for us to understand your issue and to be able to approach it
32
32
33
33
- Changing `enabled` prop during a gesture has no effect, only when a gesture starts (that is a finger touches the screen) the `enabled` prop is taken into consideration to decide whether to extract (or not) the gesture and provide it with stream of events to analyze.
34
34
-`Native` gesture may not conform to the standard state flow due to platform specific workarounds to incorporate native views into RNGH.
35
-
- Keep in mind that `Touchables` from RNGH are rendering two additional views that may need to be styled separately to achieve desired effect (`style` and `containerStyle` props).
36
-
- In order for the gesture composition to work, all composed gestures must be attached to the same `GestureHandlerRootView`.
35
+
- Keep in mind that [`Touchables`](/docs/components/touchables) from RNGH are rendering two additional views that may need to be styled separately to achieve desired effect (`style` and `containerStyle` props).
36
+
- In order for the [gesture composition](/docs/fundamentals/gesture-composition) to work, all composed gestures must be attached to the same `GestureHandlerRootView`.
37
+
38
+
## Multiple instances of Gesture Handler were detected
39
+
40
+
This error usually happens when in your project there exists more than one instance of Gesture Handler. It can occur when some of your dependencies have installed Gesture Handler inside their own `node_modules` instead of using it as a peer dependency. In this case two different versions of Gesture Handler JS module try to install the same Native Module.
37
41
38
-
### Multiple instances of Gesture Handler were detected
42
+
You can resolve this problem manually by modifying your `package.json` file. This will depend on the package manager you are using.
39
43
40
-
This error usually happens when in your project there exists more than one instance of Gesture Handler. It can occur when some of your dependencies have installed Gesture Handler inside their own `node_modules` instead of using it as a peer dependency. In this case two different versions of Gesture Handler JS module try to install the same Native Module. You can resolve this problem manually by modifying your `package.json` file.
41
44
42
-
You can check which libraries are using Gesture Handler, for example, with the command:
45
+
<TabsgroupId="package-managers">
46
+
<TabItemvalue="npm"label="NPM">
47
+
You can check which libraries are using Gesture Handler with the command:
0 commit comments