react native FlatList
高效能的列表元件
import React,{Component} from 'react';
import {View,Text,FlatList} from 'react-native';
export default class Demo08Component extends Component{
constructor(){
super();
this.state={
userList:[
"abc1",
"abc2",
"abc3"
]
}
}
showMyItem=(info)=>{
return <Text>{info.item}{info.index}</Text>
}
render(){
return <FlatList data={this.state.userList} renderItem={this.showMyItem}>
</FlatList>
}
}
相關文章
- React Native列表檢視FlatList使用優化實踐指南React Native優化
- [React Native]react-native-scrollabReact Native
- React Native 使用 react-native-webview 渲染 HTMLReact NativeWebViewHTML
- React Native Icon方案:react-native-svgReact NativeSVG
- React Native轉web方案:react-native-webReact NativeWeb
- iOS React Native 混合開發整合React NativeiOSReact Native
- react-native配置react-native-image-crop-pickerReact
- React Native 上手React Native
- react-nativeReact
- Hello React NativeReact Native
- React Native / React除錯技巧React Native除錯
- 《React Native高效開發》之create-react-native-appReact NativeAPP
- React Native選擇器元件-react-native-slidepickerReact Native元件IDE
- react native 包學不包會系列--認識react nativeReact Native
- react-native呼叫native步驟React
- react/react-native效能優化React優化
- 詳解 React NativeReact Native
- React Native 熱更新React Native
- Redux for react native 指南ReduxReact Native
- react native fetchReact Native
- React Native List列表React Native
- react native快速上手React Native
- react-native打包React
- React Native雜談React Native
- [譯] Airbnb 在 React Native 上下的賭注(四):React Native 退役AIReact Native
- [React Native] Animate the Scale of a React Native Button using Animated.springReact NativeSpring
- React-Native ‘WKWebView` has no propType for native propReactWebView
- React Native學習 認識Recat NativeReact Native
- React Native 的未來與React HooksReact NativeHook
- React Native——react-navigation的使用React NativeNavigation
- React Native --踩坑記 之 建立指定 React Native版本的專案React Native
- React Native 0.59 新特性React Native
- React Native 初體驗React Native
- React Native 環境搭建React Native
- [譯] 圖解 React Native圖解React Native
- React-Native實踐React
- react native 各種居中React Native
- React Native 效能之謎React Native