Virtualize Messages List - only render what's visible

This commit is contained in:
Scott Nonnenberg
2019-05-31 15:42:01 -07:00
parent a976cfe6b6
commit 5ebd8bc690
73 changed files with 4717 additions and 2745 deletions

View File

@@ -0,0 +1,28 @@
### Idle
```jsx
<util.ConversationContext theme={util.theme} ios={util.ios}>
<TimelineLoadingRow state="idle" />
</util.ConversationContext>
```
### Countdown
```jsx
<util.ConversationContext theme={util.theme} ios={util.ios}>
<TimelineLoadingRow
state="countdown"
duration={30000}
expiresAt={Date.now() + 20000}
onComplete={() => console.log('onComplete')}
/>
</util.ConversationContext>
```
### Loading
```jsx
<util.ConversationContext theme={util.theme} ios={util.ios}>
<TimelineLoadingRow state="loading" />
</util.ConversationContext>
```