你好,FlastList报错



  • import React, { Component } from 'react'
    import {
    FlatList,
    AppRegistry,
    StyleSheet,
    Text,
    View,
    Image

    } from 'react-native'

    import Movies from '../movies.json';

    import Item from './components/Item';

    const styles = StyleSheet.create({
    root : {
    flexDirection:'row',
    justifyContent:"space-between",
    paddingHorizontal:15,
    }
    })
    export default class myApp extends Component {
    render() {
    return (
    <View style={styles.root}>

                <FlatList
    
                    data = { Movies.subjects }
                    keyExtractor={ item => item.id }
                    renderItem={({item}) => <Item title={item.title} image={item.images.medium} />}
    
                />
    
    
            </View>
        )
    }
    

    }

    0_1525291430293_D87410761D7EBEFA304C902502D0B3BE.jpg



  • 低于0.43版本的rn是没有flatlist组件的