Skip to content
This repository has been archived by the owner on Sep 13, 2020. It is now read-only.

added maxDraggingOffset property #215

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

acresta88
Copy link

added maxDraggingOffset property to set the maximum value for the dragging gesture.
To avoid that the user can drag more than the menu size and show a white unwanted background.
By default set to 0 so that the user can drag only until the full menu is shown, but settable in case that dragging behaviour should be like before.

@tomauty
Copy link

tomauty commented May 4, 2016

Would love this...

@Kureev
Copy link
Owner

Kureev commented Oct 5, 2016

Sorry for the so late review. Can you please add some easing function there? I.e. when you drag close to the offset, drag velocity goes down to zero near the offset value.

Andrea Cresta added 2 commits October 7, 2016 19:23
…ve-side-menu

# By Kureev Alexey (5) and others
# Via GitHub (6) and Alexey (1)
* 'master' of github.com:react-native-community/react-native-side-menu:
  Update Menu.js
  Release v0.20.1.
  landscape mode after rotating fix
  Remove --projectRoots
  Update example
  Release v0.20.0.
  cleanup whitespace
  add documentation for onMove
  Add optional onMove method for handling animations
  Update README.md
  If isOpen isn't set, don't respect its value when props change.
  0.19.0
  Replace 'extends Component' to 'extends React.Component'
  Added React as devDep, React and React.Component loaded from react rather than react-native

Conflicts:
	index.js
@lukas1994
Copy link

@Kureev are you planning to merge this?

Andrea Cresta added 7 commits December 8, 2016 15:59
* 'master' of github.com:acresta88/react-native-side-menu:
  bug fix
  fixing bug with offset
  bug fix
  forcing the menu to re-calculate the percentage

Conflicts:
	index.js
@lukas1994
Copy link

?

@acresta88
Copy link
Author

@lukas1994 Hi, unfortunately I didn't have time to add the easing function that @Kureev asked for, the new commits above where just because of some problem on android when locking the orientation, so quite unrelated to the dragging offset. So either you wait a bit more (probably new year) for it, or maybe @Kureev can add that the maxDraggingOffset property without easing function :)

@gsdatta
Copy link

gsdatta commented Jul 4, 2019

For anyone that's still looking for this - I've forked and added this functionality to https://github.com/gsdatta/react-native-side-menu. I also converted it to typescript. I have yet to get it onto NPM, but if anyone wants to open a PR to set up the package correctly I'm glad to publish it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants