Skip to content

Commit

Permalink
Preload locales to fix native crash
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham committed Jun 24, 2021
1 parent a029762 commit 00ebee9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/libs/DateUtils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import moment from 'moment';
import 'moment-timezone';
import moment from 'moment-timezone';

// IMPORTANT: load any locales (other than english) that might be passed to moment.locale()
import 'moment/locale/es';

import _ from 'underscore';
import Onyx from 'react-native-onyx';
import ONYXKEYS from '../ONYXKEYS';
Expand Down

0 comments on commit 00ebee9

Please sign in to comment.