dooboolab-community / dooboo-native-ts

Complete boilerplate for react-native app. Contains, typescript, react-hook, context-api, ts-jest, localization, navigation and etc.
https://medium.com/dooboolab/announcing-dooboo-cli-v3-5c9fceeb2ac4
MIT License
81 stars 27 forks source link

[android] fix: initialize current locale on create activity #168

Closed JongtaekChoi closed 3 years ago

JongtaekChoi commented 3 years ago

In the previous code, there was a problem with restarting the app after running the app on Android and rotating the screen. The reason was that the currentLocale value was not initialized when the app was launched. In this pr, the currentLocale value to be initialized at the onCreate of MainActivity.

It referenced ftb rn example