React renderer for tweets.
This project is a fork of fake-tweet by Lluís Camino with the following improvements:
npm install --save react-fake-tweet
import React, { Component } from 'react'
import { Tweet } from 'react-fake-tweet'
import 'react-fake-tweet/dist/index.css'
const tweet = {
/* ... */
}
class Example extends Component {
render() {
return (
<Tweet
config={{
user: {
avatar: tweet.user.profile_image_url,
nickname: tweet.user.screen_name,
name: tweet.user.name
},
text: tweet.text,
date: Date.now(),
retweets: tweet.retweet_count,
likes: tweet.favorite_count
}}
/>
)
}
}
MIT © transitive-bullshit
Support my OSS work by following me on twitter