Skip to content

Conversation

nlively
Copy link
Contributor

@nlively nlively commented May 23, 2016

This pull request exposes a method that allows direct scrolling

@alvaromb
Copy link
Collaborator

Looks great @nlively!

Will merge today.

this.keyboardWillHideEvent.remove()
},

scrollToPosition: function(x, y) {
Copy link
Collaborator

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:

  1. Please insert an space between function and the parens.
  2. Add Flow annotations.
  3. 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) {
...
}

@alvaromb
Copy link
Collaborator

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
@nlively
Copy link
Contributor Author

nlively commented May 24, 2016

@alvaromb, I've added them. Please take a look. Thanks!

@Annieday
Copy link

+1 This is greate! Just what I need.

@alvaromb alvaromb merged commit ffedf32 into APSL:master May 31, 2016
@alvaromb
Copy link
Collaborator

Merged!

@alvaromb
Copy link
Collaborator

Will release 0.1.0 today. Thanks!

alvaromb pushed a commit that referenced this pull request May 31, 2016
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
alvaromb pushed a commit that referenced this pull request May 31, 2016
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
@alvaromb alvaromb added this to the 0.1.0 milestone May 31, 2016
alvaromb added a commit that referenced this pull request May 31, 2016
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants