Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow the user to import only required React Native components, and provide a utility to import and register all components. #219

Open
Riant opened this issue Nov 14, 2019 · 2 comments
Labels
good first issue Good for newcomers

Comments

@Riant
Copy link

Riant commented Nov 14, 2019

I got warnings like below, it looks like all components from react-native had been imported by default, so can I set that as empty or just view and text, and I will import the others when I need them.

Thanks.

2019-11-14_231809

@RishabhKarnad
Copy link
Contributor

@Riant for now, all React Native components are imported and registered by vue-native-core.

One thing we could do is provide a utility which will do this only if required by the user, in a future release. But for now, there is no way to prevent all components from being imported.

@RishabhKarnad RishabhKarnad changed the title Question: Can I set the default components which import from react-native or react? Allow the user to import only required React Native components, and provide a utility to import and register all components. Nov 14, 2019
@RishabhKarnad RishabhKarnad added the good first issue Good for newcomers label Nov 14, 2019
@RishabhKarnad RishabhKarnad pinned this issue Dec 2, 2019
@loginetsolutions
Copy link

+1 Exactly my problem. It would be nice to have the native part only for existing VueJs apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants