Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32159114
themes.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
728 B
Referenced Files
None
Subscribers
None
themes.js
View Options
// @flow
import
{
Platform
}
from
'react-native'
;
export
type
GlobalTheme
=
'light'
|
'dark'
;
export
type
GlobalThemePreference
=
GlobalTheme
|
'system'
;
export
type
GlobalThemeInfo
=
{
+
activeTheme
:
?
GlobalTheme
,
+
systemTheme
:
?
GlobalTheme
,
+
preference
:
GlobalThemePreference
,
};
export
const
osCanTheme
:
boolean
=
(
Platform
.
OS
===
'ios'
&&
parseInt
(
Platform
.
Version
,
10
)
>=
13
)
||
(
Platform
.
OS
===
'android'
&&
Platform
.
Version
>=
29
);
export
const
defaultGlobalThemeInfo
=
{
// revert to `activeTheme: osCanTheme ? null : 'light'` to re-enable theming
activeTheme
:
'dark'
,
systemTheme
:
null
,
// revert to `preference: osCanTheme ? 'system' : 'light'`
// to re-enable theming
preference
:
'dark'
,
};
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Sun, Dec 7, 4:26 PM (13 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5836829
Default Alt Text
themes.js (728 B)
Attached To
Mode
rCOMM Comm
Attached
Detach File
Event Timeline
Log In to Comment