mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
ccb0899658
Summary:
```js
componentDidMount() {
this._list.setNativeProps({scrollEnabled: false})
}
render() {
const sections = [
{key: 'foo', data: [{name: 'Jone Doe', key: 'a'}, {name: 'Susan Briz', key: 'b'}],
{key: 'bar', data: [{name: 'David Mark', key: 'c'}, {name: 'Daniel Campbell', key: 'd'}]
]
return (
<SectionList
ref={c => (this._list = c)}
sections={sections}
renderItem={({item}) => <Text>{item.name}<Text>}
/>
)
}
```
Closes https://github.com/facebook/react-native/pull/15328
Differential Revision: D5546636
Pulled By: javache
fbshipit-source-id: 25aec067879be1571db5c3a09b5f0952826220ac