Norigin-Spatial-Navigation icon indicating copy to clipboard operation
Norigin-Spatial-Navigation copied to clipboard

Export Library and react in different ways

Open mehardiknaik opened this issue 10 months ago • 4 comments

my suggestion is to export core function and core modules as import { init, SpatialNavigation } from '@noriginmedia/norigin-spatial-navigation';

and for react import { useFocusable, FocusContext } from '@noriginmedia/norigin-spatial-navigation/react';

add /react for react so if any one want to use this on other framerwork like vue or svelt then they use core modules from @noriginmedia/norigin-spatial-navigation and if someone want to use this with react then they go with @noriginmedia/norigin-spatial-navigation/react and this way in future we can add @noriginmedia/norigin-spatial-navigation/vue or @noriginmedia/norigin-spatial-navigation/svelt like this

mehardiknaik avatar Mar 18 '25 09:03 mehardiknaik

Hello @mehardiknaik, thanks for getting in touch.

This is a good suggestion and something we already have in the works.

We can keep this issue open until we've had a chance to update the library with the relevant changes.

Thanks!

predikament avatar Mar 19 '25 12:03 predikament

Hi @predikament thanks for the response You can refer https://www.npmjs.com/package/web-scrolling-text?activeTab=readme

This package where core and react are exported separately

mehardiknaik avatar Mar 19 '25 12:03 mehardiknaik

Hi @predikament thanks for the response You can refer https://www.npmjs.com/package/web-scrolling-text?activeTab=readme

This package where core and react are exported separately

We already do this for some of our other libraries, so we already have an idea for the approach, but thanks nevertheless!

I'll do my best to post some updates here, once we've made some progress, but it might take a little while due to other higher priorities, so hopefully with some patience we'll get there.

Cheers

predikament avatar Mar 19 '25 12:03 predikament

Hi @predikament thanks for the response You can refer https://www.npmjs.com/package/web-scrolling-text?activeTab=readme This package where core and react are exported separately

We already do this for some of our other libraries, so we already have an idea for the approach, but thanks nevertheless!

I'll do my best to post some updates here, once we've made some progress, but it might take a little while due to other higher priorities, so hopefully with some patience we'll get there.

Cheers

Yes sure and if you need any help regarding that i will definitely help you thanks

mehardiknaik avatar Mar 19 '25 12:03 mehardiknaik