React-native-device-info: TypeError: _reactNativeDeviceInfo.default.getTimezone is not a function

Created on 12 Sep 2019  路  4Comments  路  Source: react-native-device-info/react-native-device-info

Why DeviceInfo.getTimezone() method removed in version 3.0.0?
And how I can get the timezone in lastest version react-native-device-info?

Most helpful comment

For anyone else that looks at this - please know that we took a poll even, we're not trying to just break everyone. The react-native-localize package has a fantastic API and is a good home for these. In particular - using it in my work project (basically copying the example there) I have my app dynamically changing translated languages when the user changes their system language. It's very cool.

Good luck

All 4 comments

It was moved to react-native-localize, check the CHANGELOG please, I think this issue can be closed.

Yep. For breaking changes the docs are vital

It was moved to react-native-localize, check the CHANGELOG please, I think this issue can be closed.

thank you (y)

For anyone else that looks at this - please know that we took a poll even, we're not trying to just break everyone. The react-native-localize package has a fantastic API and is a good home for these. In particular - using it in my work project (basically copying the example there) I have my app dynamically changing translated languages when the user changes their system language. It's very cool.

Good luck

Was this page helpful?
0 / 5 - 0 ratings

Related issues

StevePotter picture StevePotter  路  5Comments

NemanjaManot picture NemanjaManot  路  4Comments

sahil290791 picture sahil290791  路  5Comments

truckhiem picture truckhiem  路  4Comments

Ken-Lim picture Ken-Lim  路  5Comments