React-native-calendars: Can't resolve ./platform-style on react-native-web

Created on 28 Jul 2017  路  5Comments  路  Source: wix/react-native-calendars

I'm getting a:
Module not found: Can't resolve './platform-style' in 'node_modules/react-native-calendars/src/agenda'
error when using the Calendar with react-native-web.

Is this because there's a missing platform-style.js fallback for the .ios.js and .android.js files or am I doing something wrong?

Awesome project by the way!

Bug report

Most helpful comment

@overengineered @tautvilas
I was using the Calendar, not the Agenda. I guess babel/webpack was traversing through that directory also.

I copied platform-style.android.js to platform-style.js and it worked fine for me (the Calendar).

All 5 comments

Yes, that would be the cause of it. Would you be able to determine the style settings needed for web?

I am not sure anyone has tried to use agenda with react-native-web before. So there might be other issues too.

@overengineered @tautvilas
I was using the Calendar, not the Agenda. I guess babel/webpack was traversing through that directory also.

I copied platform-style.android.js to platform-style.js and it worked fine for me (the Calendar).

thx for info, we will add fallback

added android style as fallback style

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sonnguyenit picture sonnguyenit  路  3Comments

ercpereda picture ercpereda  路  4Comments

moiiiiit picture moiiiiit  路  4Comments

chapeljuice picture chapeljuice  路  3Comments

matieux picture matieux  路  4Comments