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

[react-native] platform specific code #69

Closed
oxyii opened this issue Dec 29, 2019 · 3 comments
Closed

[react-native] platform specific code #69

oxyii opened this issue Dec 29, 2019 · 3 comments
Labels
type/help wanted Extra attention is needed type/question Further information is requested

Comments

@oxyii
Copy link

oxyii commented Dec 29, 2019

I'm new in bit. I have no luck to find solution in docs. Please help to configure bit resolver for platform-specific code like noted in this comment
I had a error:

 non-existing dependency files (please make sure all files exists on your workspace): 
          Component/index.js -> ./Component

My component folder structure:

index.js // <- export { default } from './Component'
Component.android.js
Component.ios.js

Both variants (android + ios) must be included into build

@oxyii oxyii added type/help wanted Extra attention is needed type/question Further information is requested labels Dec 29, 2019
@GiladShoham
Copy link
Member

Hi,
this will be handled under - teambit/bit#2215

@oxyii
Copy link
Author

oxyii commented Dec 30, 2019

@GiladShoham Thanks for your reply but this is not a solution exactly... it's actually easier than it sounds... The only thing I need is to explicitly list the supported file extensions. Something like resolveModules but for file extensions. Something like Webpack extensions resolver. But it must include into build all found files instead of first matched

@oxyii
Copy link
Author

oxyii commented Dec 30, 2019

Ok, sorry for dup. Let's continue in teambit/bit#2215

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/help wanted Extra attention is needed type/question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants