react-native-shared-code icon indicating copy to clipboard operation
react-native-shared-code copied to clipboard

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

Open AtlasRider opened this issue 7 years ago • 1 comments
trafficstars

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!

AtlasRider avatar Oct 05 '18 22:10 AtlasRider

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 :)

fdnhkj avatar Oct 25 '18 12:10 fdnhkj