21 lines
412 B
Markdown
21 lines
412 B
Markdown
|
Rendering a real `Whisper.MessageView` using `<util.MessageParents />` 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.MessageParents theme="android">
|
||
|
<util.BackboneWrapper
|
||
|
View={View}
|
||
|
options={options}
|
||
|
/>
|
||
|
</util.MessageParents>
|
||
|
```
|