1326b26585
Due to a number of hacks, the style guide can be used to show Backbone views. This will allow a smooth path from the old way of doing things to the new.
412 B
412 B
Rendering a real Whisper.MessageView
using <util.MessageParents />
and
<util.BackboneWrapper />
.
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>