-
Notifications
You must be signed in to change notification settings - Fork 644
Allow scroll to a specific position #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Looks great @nlively! Will merge today. |
lib/KeyboardAwareMixin.js
Outdated
this.keyboardWillHideEvent.remove() | ||
}, | ||
|
||
scrollToPosition: function(x, y) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to have three things before merging this PR:
- Please insert an space between
function
and the parens. - Add Flow annotations.
- Add also a third parameter to programatically set the
animated
value.
In the end, it would look like this:
scrollToPosition: function (x: number, y: number, animated: bool = false) {
...
}
Please @nlively consider adding my suggestions and I'll be more than happy to merge this PR. |
Applied suggestions from @APSL to add the `animated` parameter to this function and specify flow annotations
@alvaromb, I've added them. Please take a look. Thanks! |
+1 This is greate! Just what I need. |
Merged! |
Will release |
* Adds support for auto TextInput onFocus scroll Adds support for auto TextInput onFocus scroll Allow scroll to a specific position (#19) * allow scroll to a specific position * Update KeyboardAwareMixin.js Applied suggestions from @APSL to add the `animated` parameter to this function and specify flow annotations * Improved README
This pull request exposes a method that allows direct scrolling