Guest User

Untitled

a guest
Dec 13th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. import React, { Component } from "react";
  2. import { Icon } from "react-native-elements";
  3. import { connect } from "redux";
  4. import withBadge from "./withBadge";
  5.  
  6. @connect(state => ({ notifications: state.notifications }))
  7. @withBadge(props => props.notifications.length)
  8. export default class BadgedComponent extends Component {
  9. public render() {
  10. return <Component {...props} />;
  11. }
  12. }
Add Comment
Please, Sign In to add comment