react-native-material-kit icon indicating copy to clipboard operation
react-native-material-kit copied to clipboard

JS components are no longer exported. only TS components work.

Open siderakis opened this issue 6 years ago • 6 comments

siderakis avatar Sep 07 '19 21:09 siderakis

Same here - any known workarounds?

chrisnovak avatar Sep 09 '19 17:09 chrisnovak

Are you talking about the NPM version or the current master? If it’s the latest do you know which commit breaks js component?

Crash-- avatar Sep 09 '19 17:09 Crash--

You can use my branch but there is probably another way. I got all of JS components working, but it seems hacky.

Sent from my iPhone

On Sep 9, 2019, at 1:59 PM, Quentin Valmori [email protected] wrote:

Are you talking about the NPM version or the current master? If it’s the latest do you know which commit breaks js component?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

siderakis avatar Sep 09 '19 20:09 siderakis

Index.ts doest export any JS components. Also the TS compiler needs to be called with the flag to copy over the JS files from src to lib.

Sent from my iPhone

On Sep 9, 2019, at 1:59 PM, Quentin Valmori [email protected] wrote:

Are you talking about the NPM version or the current master? If it’s the latest do you know which commit breaks js component?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

siderakis avatar Sep 09 '19 20:09 siderakis

So this is an update of the TS compiler that cause this issue?

Where can I find your branch?

Crash-- avatar Sep 10 '19 05:09 Crash--

Specifically this branch, not master https://github.com/siderakis/react-native-material-kit/tree/master-siderakis

I ended up checking in the /lib directory but that might not be needed. Just updating index.ts to export the JS components and calling the TS compiler with the flag to copy the JS files to lib might work.

Sent from my iPhone

On Sep 10, 2019, at 11:34 AM, Christopher Novak [email protected] wrote:

This is his branch. I'm experiencing this issue on RN 0.61.0-rc.2

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

siderakis avatar Sep 10 '19 21:09 siderakis