mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-20 16:38:21 +01:00
18 lines
422 B
Markdown
18 lines
422 B
Markdown
Rendering a real `Whisper.MessageView` using `<util.ConversationContext />` and
|
|
`<util.BackboneWrapper />`.
|
|
|
|
```jsx
|
|
const model = new Whisper.Message({
|
|
type: 'outgoing',
|
|
body: 'text',
|
|
sent_at: Date.now() - 5000,
|
|
});
|
|
const View = Whisper.MessageView;
|
|
const options = {
|
|
model,
|
|
};
|
|
<util.ConversationContext theme={util.theme}>
|
|
<util.BackboneWrapper View={View} options={options} />
|
|
</util.ConversationContext>;
|
|
```
|