How to use react-native-elements - 10 common examples

To help you get started, we’ve selected a few react-native-elements examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github berty / berty / js / packages / components / avatars.tsx View on Github external
)
	}
	const badgeSize = size / 3
	class GroupBadge extends React.Component {
		render = () => 
	}
	const Avatar = () => content
	const WrappedAvatar = withBadge('', { Component: GroupBadge })(Avatar)
	return 
}
github rastapasta / foodsharing / src / components / DrawerIcon.tsx View on Github external
render() {
    const { bells } = this.props
      , unreadBells = bells.reduce((sum, bell) => sum + (bell.isRead ? 0 : 1), 0)
      , Component = unreadBells ?
                    withBadge(unreadBells, {badgeStyle: {backgroundColor: colors.green}})(Icon) :
                    Icon

    return (
      
    )
  }
}
github rastapasta / foodsharing / src / scenes / Router.tsx View on Github external
const icon = (name: string, size: number = 32, color?: string, badge?: number) => ({focused}) => {
  const Component = badge ? withBadge(badge)(Icon) : Icon
  return (
    
  )
}
github totorototo / strava / app / components / common / card / Card.js View on Github external
import React, { Component } from "react";
import PropTypes from "prop-types";
import { Card as NativeCard } from "react-native-elements";

import styles from "./styles";

export default class Card extends Component {
  static propTypes = {
    title: NativeCard.propTypes.title,
    children: PropTypes.node,
    image: NativeCard.propTypes.image
  };

  static defaultProps = {
    title: null,
    children: null,
    image: null
  };

  render() {
    return (
github totorototo / strava / app / components / common / card / Card.js View on Github external
import React, { Component } from "react";
import PropTypes from "prop-types";
import { Card as NativeCard } from "react-native-elements";

import styles from "./styles";

export default class Card extends Component {
  static propTypes = {
    title: NativeCard.propTypes.title,
    children: PropTypes.node,
    image: NativeCard.propTypes.image
  };

  static defaultProps = {
    title: null,
    children: null,
    image: null
  };

  render() {
    return (