Skip to content

Commit

Permalink
Give some love to Gesture Handler docs (#2607)
Browse files Browse the repository at this point in the history
## Description

This PR aims to clean-up React Native Gesture Handler docs.

Fixes
#2604
Fixes
#2608

## Changes

### Before

Confusing sidebar with nesting and hard to find pages for newcomers



https://github.com/software-mansion/react-native-gesture-handler/assets/39658211/3263431a-60f5-4aeb-98a8-3b9aa66fa4fe



### After

Open sidebar with one level of page nesting



https://github.com/software-mansion/react-native-gesture-handler/assets/39658211/1471ebb3-87b4-4cae-96a1-a76fe9cacc50


### Before

A lot of versions which many of them are duplicates with a couple of
changes eg. one function added



https://github.com/software-mansion/react-native-gesture-handler/assets/39658211/b4f7b818-dce8-49a7-b23e-df6db931a5b7



### After

2 major versions same as the library



https://github.com/software-mansion/react-native-gesture-handler/assets/39658211/5c5105d4-2c69-4179-8ae3-0e4204131708


### Also

- Added imports to examples
- Fix examples in Gestures so they can be copied, compiled and run
without any changes
- Added a couple of videos showcasing the gestures
- Made redirects from old versions to the new ones (a bit flaky tbh) 


## Test plan

```
cd docs/
yarn
yarn start
```

---------

Co-authored-by: Jakub Piasecki <[email protected]>
Co-authored-by: Michał Bert <[email protected]>
  • Loading branch information
3 people authored Sep 29, 2023
1 parent a9272cf commit 6a13aa3
Show file tree
Hide file tree
Showing 423 changed files with 1,959 additions and 21,405 deletions.
147 changes: 0 additions & 147 deletions docs/docs/api/components/drawer-layout.mdx

This file was deleted.

52 changes: 0 additions & 52 deletions docs/docs/api/components/touchables.md

This file was deleted.

9 changes: 0 additions & 9 deletions docs/docs/api/gestures/base-continous-gesture-callbacks.md

This file was deleted.

9 changes: 0 additions & 9 deletions docs/docs/api/gestures/base-gesture-event-data.md

This file was deleted.

7 changes: 0 additions & 7 deletions docs/docs/api/gestures/composed-gestures.md

This file was deleted.

86 changes: 0 additions & 86 deletions docs/docs/api/gestures/fling-gesture.md

This file was deleted.

54 changes: 0 additions & 54 deletions docs/docs/api/gestures/force-touch-gesture.md

This file was deleted.

Loading

0 comments on commit 6a13aa3

Please sign in to comment.