mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-02 22:41:18 +08:00
Summary:
Example (index.ios.js):
```
'use strict';
import React from 'react';
import {ListView, RefreshControl, Text, View} from 'react-native';
class BugExample extends React.Component {
render() {
return (
<ListView
style={{backgroundColor: 'red'}}
contentContainerStyle={{backgroundColor: 'green'}}
refreshControl={
<RefreshControl
refreshing={true}
onRefresh={() => {}}
/>
}
dataSource={
new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2}).cloneWithRows(['a', 'b', 'c'])
}
renderRow={(item) => {
return (
<View>
<Text>{item}</Text>
</View>
);
}}
/>
);
}
}
```
RN version: 0.34, 0.35-rc
iOS version (emulator): 9.
Closes https://github.com/facebook/react-native/pull/10321
Differential Revision: D4142774
Pulled By: mmmulani
fbshipit-source-id: 743b865a6e1c1fb09c7cfc48631ad383bd593f89