fdnhkj / react-native-shared-code

Calculates the percentage of shared code across platforms in your React Native project.
MIT License
45 stars 4 forks source link

No index.platform.js (android,ios,windows) found #6

Open AtlasRider opened 6 years ago

AtlasRider commented 6 years ago

Hi, great utility! I was wondering why it needs to have an index.android.js or index.ios.js in the root dir. My app is fine with just the index.js. I figured the Metro Bundler knows what platform it is without this.

Thanks!

fdnhkj commented 6 years ago

Hi @AtlasRider,

This is probably because pointing to index.js was not supported by the RN packager (now called Metro) when I was writing this utility.

Unfortunately, I don't really have time right now to fix this, but PRs are welcome :)