React Native: How can I focus on ListView?
<p>I've been working on focusing on ListView component.<br>
Here's my code  </p>

<pre><code>class MyListView extends Component { 
    static propTypes = {
        navigator: PropTypes.object.isRequired,
    };

    componentDidMount() {
        this.listView.focus()
    }

    render() {
        return (
            &lt;ListView
                ref={ref =&gt; { this.listView = ref }}
                contentContainerStyle={styles.listView}
                dataSource={cloneWithRows(listDataSource)}
                renderRow={(data) =&gt; &lt;MyListViewCell
                    ...
                /&gt;}
            /&gt;
        )
    }
}
export default MyListView
</code></pre>

<p>but it just returns an error like "this.listView.focus is not a function"
I've searched lots of articles but I couldn't find the solution.<br>
Any ideas?</p>