import React from 'react' import { StyleSheet, Text, View } from 'react-native' import Emojis from './Emojis' export interface Props { poll: mastodon.Poll } const Poll: React.FC = ({ poll }) => { return ( {poll.options.map((option, index) => ( {Math.round((option.votes_count / poll.votes_count) * 100)}% ))} ) } const styles = StyleSheet.create({ avatar: { width: 50, height: 50, marginRight: 8 }, image: { width: '100%', height: '100%' } }) export default Poll