mirror of
https://github.com/tooot-app/app
synced 2024-12-26 17:32:26 +01:00
Fix Android crashes using PlatformColor
This commit is contained in:
parent
c3aba848a5
commit
9f8064ded4
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "tooot",
|
"name": "tooot",
|
||||||
"version": "4.10.2",
|
"version": "4.10.3",
|
||||||
"description": "tooot for Mastodon",
|
"description": "tooot for Mastodon",
|
||||||
"author": "xmflsct <me@xmflsct.com>",
|
"author": "xmflsct <me@xmflsct.com>",
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
|
@ -97,30 +97,18 @@ const themeColors: {
|
|||||||
},
|
},
|
||||||
|
|
||||||
separator: {
|
separator: {
|
||||||
light: PlatformColor(
|
light: Platform.select({
|
||||||
Platform.select({
|
ios: PlatformColor('separator') as unknown as string,
|
||||||
ios: 'separator',
|
default: 'rgb(180, 180, 180)'
|
||||||
android: '?android:attr/dividerVertical',
|
}),
|
||||||
default: 'rgb(180, 180, 180)'
|
dark_lighter: Platform.select({
|
||||||
}),
|
ios: PlatformColor('separator') as unknown as string,
|
||||||
'rgb(180, 180, 180)'
|
default: 'rgb(90, 90, 90)'
|
||||||
) as unknown as string,
|
}),
|
||||||
dark_lighter: PlatformColor(
|
dark_darker: Platform.select({
|
||||||
Platform.select({
|
ios: PlatformColor('separator') as unknown as string,
|
||||||
ios: 'separator',
|
default: 'rgb(90, 90, 90)'
|
||||||
android: '?android:attr/dividerVertical',
|
})
|
||||||
default: 'rgb(90, 90, 90)'
|
|
||||||
}),
|
|
||||||
'rgb(90, 90, 90)'
|
|
||||||
) as unknown as string,
|
|
||||||
dark_darker: PlatformColor(
|
|
||||||
Platform.select({
|
|
||||||
ios: 'separator',
|
|
||||||
android: '?android:attr/dividerVertical',
|
|
||||||
default: 'rgb(90, 90, 90)'
|
|
||||||
}),
|
|
||||||
'rgb(90, 90, 90)'
|
|
||||||
) as unknown as string
|
|
||||||
},
|
},
|
||||||
|
|
||||||
shimmerDefault: {
|
shimmerDefault: {
|
||||||
|
Loading…
Reference in New Issue
Block a user