feat: mobile app package (#1075)
This commit is contained in:
12
packages/mobile/src/Lib/moment.ts
Normal file
12
packages/mobile/src/Lib/moment.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
// moment.js
|
||||
import moment from 'moment'
|
||||
import { NativeModules, Platform } from 'react-native'
|
||||
|
||||
// moment.js
|
||||
const locale =
|
||||
Platform.OS === 'android'
|
||||
? NativeModules.I18nManager.localeIdentifier
|
||||
: NativeModules.SettingsManager.settings.AppleLocale
|
||||
moment.locale(locale)
|
||||
|
||||
export default moment
|
||||
Reference in New Issue
Block a user