Determine the phone's 12 hour / 24 hour time format?

#1

We’re looking to do what seems simple but has proven not so simple.

Is there any way, when using Expo not ejected, to read the phone’s time format and display times in our app the same way?

Thanks,
Jeremy

#2

I looked into this about a year ago. It’s not reported by any of the locale stuff that’s already in Expo / available to the JS engine, and I’m not aware of anything changing, so ejecting and using something like https://github.com/SoftwareMansion/react-native-hour-format is probably required.

#3

Thanks @llamaluvr. That’s what we suspected.

We decided to make it a user setting in-app instead of using the phone settings. Can’t afford to detach.

closed #4

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.