mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-07 09:17:55 +08:00
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:
committed by
facebook-github-bot-4
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}
|
||||
|
||||
Reference in New Issue
Block a user