Skip to content

v23.16.0

tagged this 27 Jul 15:52
Also remove FlatList as special block in favour of doing it as a React component like:

```
// src/DesignSystem/FlatList/react.js

import { FlatList } from 'react-native';
import React from 'react';

export default function FlatListView(props) {
  return (
    <FlatList
      data={props.from}
      renderItem={props.children}
      keyExtractor={props.keyExtractor}
    />
  );
}
FlatListView.defaultProps = {
  keyExtractor: item => item.id,
};
```

You then use it like:

```
Articles View
is together
data articles
  FlatList
  from <value
    Article
```
Assets 2