Fix Movies example deprecation warning

Summary: Closes https://github.com/facebook/react-native/pull/5802

Reviewed By: svcscm

Differential Revision: D2911814

Pulled By: androidtrunkagent

fb-gh-sync-id: b623827442fdde53a64e17b7d7842e3a268cf016
This commit is contained in:
Csaba Palfi 2016-02-08 10:06:22 -08:00 committed by facebook-github-bot-4
parent 6b63afb097
commit 0a6604fa96
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ var SearchScreen = React.createClass({
onSearchChange={this.onSearchChange}
isLoading={this.state.isLoading}
onFocus={() =>
this.refs.listview && this.refs.listview.getScrollResponder().scrollTo(0, 0)}
this.refs.listview && this.refs.listview.getScrollResponder().scrollTo({ x: 0, y: 0 })}
/>
<View style={styles.separator} />
{content}