With this PR, the web now uses the web specifc components but you have to import from @rn-primitives/<primitive>/dist/<primitive>. I couldn't get it to work with @rn-primitives/<primitive> which would be the ideal case.
Reducing the content dowloaded from npm
Before, the entire content of the folder from packages was downloaded from npm. Now, it is only what is needed.
Previously:
Now:
Added example
To test the components, I add examples from react-native-reusables
Platform specific web primitives
With this PR, the web now uses the web specifc components but you have to import from
@rn-primitives/<primitive>/dist/<primitive>
. I couldn't get it to work with@rn-primitives/<primitive>
which would be the ideal case.Reducing the content dowloaded from npm
Before, the entire content of the folder from packages was downloaded from npm. Now, it is only what is needed.
Previously:
Now:
Added example
To test the components, I add examples from react-native-reusables