mirror of
https://github.com/timepill/timepill-app.git
synced 2025-04-30 09:59:31 +08:00
android 禁止横屏
This commit is contained in:
parent
57f3be658f
commit
6be0a4c3c3
1 changed files with 4 additions and 0 deletions
4
index.js
4
index.js
|
@ -95,6 +95,10 @@ Navigation.events().registerAppLaunchedListener(async () => {
|
|||
firebase.crashlytics().enableCrashlyticsCollection();
|
||||
}
|
||||
|
||||
Navigation.setDefaultOptions({
|
||||
layout: { orientation: ['portrait'] },
|
||||
})
|
||||
|
||||
try {
|
||||
await loadIcon();
|
||||
} catch (err) {
|
||||
|
|
Loading…
Reference in a new issue