react-native-calendars not rendering properly
See original GitHub issue🐛 Bug Report
react-native-web is not working properly with react-native-calendars.
A similar issue was opened with react-native-calendars and they suggested that an issue was opened with the expo team
Details are given about what could be the problem
This is most probably not an issue with react-native-calendars, but with expo / webpack config. I’m using calendars fine with my web webpack setup. react-native-calendars needs transpilation (just like most react-native libraries), so I guess your webpack babel rule needs to be told to include node_modules/react-native-calendars for transpilation. If I was you, I’d close this issue and open a new one in the expo community.
Environment
Expo CLI 3.0.10 environment info:
System:
OS: macOS High Sierra 10.13.6
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.15.1 - /usr/local/bin/node
Yarn: 1.15.2 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
IDEs:
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
@types/react: ^16.8.23 => 16.9.2
@types/react-native: ^0.57.65 => 0.57.65
expo: ^34.0.1 => 34.0.4
react: 16.8.3 => 16.8.3
react-native: https://github.com/expo/react-native/archive/sdk-34.0.0.tar.gz => 0.59.8
react-navigation: ^3.11.0 => 3.11.1
npmGlobalPackages:
expo-cli: 3.0.10
The target with the problem is web. ios and android are both working fine
Steps to Reproduce
use react-native-calendars with react-native-web on expo
Expected Behavior
The calendar should look like this (ios pictured)

Actual Behavior
This is what it looks like on web

The dates section is not working and the expand bar does not do anything
Reproducible Demo
I created a snack for expo expo snack
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (2 by maintainers)
Top Related StackOverflow Question
In the other thread, you stated you have the following error
AFAIK, expo will automatically include all packages starting with
react-native-*to be processed by babel. Thus, adding@babel/plugin-proposal-class-propertiesto your babel config should resolve the problem.But I’m not 100% sure, I hope some expo folks will chime in.
Nice, I guess this here can be closed then, I’m sure its not related to expo but some issue with how react-native-calendars handles press event on the expander and some styling issues that do not seem to transfer well to web.
@BillyFigueroa has created an issue in https://github.com/wix/react-native-calendars/issues/924, which seems like the better place to get this fixed.