react-native-calendar-strip icon indicating copy to clipboard operation
react-native-calendar-strip copied to clipboard

App crashes on Android

Open FelipeBattistotti opened this issue 3 years ago • 4 comments

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?

FelipeBattistotti avatar Aug 21 '22 02:08 FelipeBattistotti

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.

peacechen avatar Aug 22 '22 13:08 peacechen

@peacechen This really solved it. Thanks a lot.

FelipeBattistotti avatar Aug 27 '22 17:08 FelipeBattistotti

Hello @FelipeBattistotti

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

rmocelin avatar Jan 23 '23 19:01 rmocelin

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

FelipeBattistotti avatar Jan 25 '23 01:01 FelipeBattistotti