react-native-SmartRefreshLayout icon indicating copy to clipboard operation
react-native-SmartRefreshLayout copied to clipboard

请问为什么只会渲染10条数据,超过的部分渲染不出来?

Open OwenDeng opened this issue 6 years ago • 0 comments

image <View style={{flex: 1}}> <FlatList style={{flex: 1}} renderScrollComponent={ (props) => <ScrollView style={{flex: 1}} refreshControl={<SmartRefreshControl ref={ref => this.rc = ref} renderHeader={<DefaultHeader/>} onRefresh={() => { setTimeout(() => { this.rc && this.rc.finishRefresh(); }, 1000) }} />} > </ScrollView> } renderItem={this._renderItem} data={data}

            />
        </View>

我总共定义了13条数据,但是超过10的就不会渲染出来了

OwenDeng avatar Jul 04 '19 16:07 OwenDeng