Warning:Each child in an array or iterator should have a unique “key” prop.
解决方法:在数组名.map等循环子项中添加key属性
array.map((value, index) => { return ( <View key={value.toString()}>//循环子项加key < DeviceView img={require('../resources/images/ic_storage.png')} header={this.sdName[index]} body={value} /> <View style={styles.itemDividerView}> <View style={styles.itemDivider}/> </View> </View> ) })