Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, { Component } from "react";
- import { Icon } from "react-native-elements";
- import { connect } from "redux";
- import withBadge from "./withBadge";
- @connect(state => ({ notifications: state.notifications }))
- @withBadge(props => props.notifications.length)
- export default class BadgedComponent extends Component {
- public render() {
- return <Component {...props} />;
- }
- }
Add Comment
Please, Sign In to add comment