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

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

1 Like

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.

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.

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