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:
parent
6b63afb097
commit
0a6604fa96
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue