react-easy-swipe icon indicating copy to clipboard operation
react-easy-swipe copied to clipboard

Swipe component should accept valid React children

Open LBRDan opened this issue 2 years ago • 2 comments

A simple Typescript for Swipe component As far as I can see, it should be able to accept any valid React Children

Repro case HERE

LBRDan avatar May 10 '22 18:05 LBRDan

Hi @leandrowd, Is there something wrong about this PR?

LBRDan avatar May 13 '22 21:05 LBRDan

I'm using this as a workaround until this is merged:

Create file react-easy-swipe.d.ts in project root with:

import React from "react";
import "react-easy-swipe";

declare module "react-easy-swipe" {
  interface SwipeProps {
    // workaround for https://github.com/leandrowd/react-easy-swipe/pull/64
    children?: React.ReactNode;
  }
}

patotoma avatar May 18 '22 04:05 patotoma

This should definitely be merged and released :-)

mlshv avatar Nov 07 '22 16:11 mlshv

Sorry for the delay. I'm not actively maintaining this package. I just merged another PR that solves this problem and published it to npm.

leandrowd avatar Jan 25 '23 01:01 leandrowd