BugiDev / react-native-calendar-strip

Easy to use and visually stunning calendar component for React Native.
MIT License
934 stars 325 forks source link

App crashes on Android #355

Open FelipeBattistotti opened 1 year ago

FelipeBattistotti commented 1 year ago

Hello, Locally I test my app with Expo and everything looks fine. Although, after publish my app on Google Play Store, the app crashes because of "react-native-calendar-strip". What is the reason for this happening?

peacechen commented 1 year ago

That's typically caused by misconfigured localization. Follow these instructions: https://github.com/BugiDev/react-native-calendar-strip#localization

There are past issues discussing this.

FelipeBattistotti commented 1 year ago

@peacechen This really solved it. Thanks a lot.

rmocelin commented 1 year ago

Hello @FelipeBattistotti

Can you share the configuration you made to solve this issue?

FelipeBattistotti commented 1 year ago

Hello @rmocelin,

The imports must be carried out in this way:

import 'moment'
import 'moment/locale/pt-br' // language must match config
import moment from 'moment-timezone' // only if timezone is needed