Skip to content

Conversation

@ide
Copy link
Contributor

@ide ide commented Mar 30, 2015

This is an API like setting the contentOffset except it is imperative, which is usually what you want unless the scroll view is a controlled component (for that to be realistic, JS would need to drive the scroll physics and specify the contentOffset during each frame without interruptions like the GC or CPU-hungry JS).

This is an API like setting the contentOffset except it is imperative, which is usually what you want unless the scroll view is a controlled component.
@vjeux
Copy link
Contributor

vjeux commented Mar 30, 2015

I would want to keep boolean args out of the JS API since JS doesn't have named args.

Totally agreed.

This looks good to me

@ide
Copy link
Contributor Author

ide commented Mar 30, 2015

closing in favor of #509 w/suggested changes

@ide ide closed this Mar 30, 2015
vjeux pushed a commit to vjeux/react-native that referenced this pull request Apr 13, 2015
Summary:
Implementing the consensus approach from the comments on
this PR:
facebook#486

We use a boolean flag in the Obj-C code to determine whether
to animate or not, and then provide two public JS functions
that call the Obj-C with or without the flag.
Closes facebook#509
Github Author: Charlie Cheever <[email protected]>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
vjeux pushed a commit to vjeux/react-native that referenced this pull request Apr 14, 2015
Summary:
Implementing the consensus approach from the comments on
this PR:
facebook#486

We use a boolean flag in the Obj-C code to determine whether
to animate or not, and then provide two public JS functions
that call the Obj-C with or without the flag.
Closes facebook#509
Github Author: Charlie Cheever <[email protected]>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
vjeux pushed a commit to vjeux/react-native that referenced this pull request Apr 15, 2015
Summary:
Implementing the consensus approach from the comments on
this PR:
facebook#486

We use a boolean flag in the Obj-C code to determine whether
to animate or not, and then provide two public JS functions
that call the Obj-C with or without the flag.
Closes facebook#509
Github Author: Charlie Cheever <[email protected]>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
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