Fix Android crashes using PlatformColor

This commit is contained in:
xmflsct 2023-08-28 00:27:10 +02:00
parent c3aba848a5
commit 9f8064ded4
No known key found for this signature in database
GPG Key ID: 078A93AB607D85E0
2 changed files with 13 additions and 25 deletions

View File

@ -1,6 +1,6 @@
{
"name": "tooot",
"version": "4.10.2",
"version": "4.10.3",
"description": "tooot for Mastodon",
"author": "xmflsct <me@xmflsct.com>",
"license": "GPL-3.0-or-later",

View File

@ -97,30 +97,18 @@ const themeColors: {
},
separator: {
light: PlatformColor(
Platform.select({
ios: 'separator',
android: '?android:attr/dividerVertical',
default: 'rgb(180, 180, 180)'
}),
'rgb(180, 180, 180)'
) as unknown as string,
dark_lighter: PlatformColor(
Platform.select({
ios: 'separator',
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
light: Platform.select({
ios: PlatformColor('separator') as unknown as string,
default: 'rgb(180, 180, 180)'
}),
dark_lighter: Platform.select({
ios: PlatformColor('separator') as unknown as string,
default: 'rgb(90, 90, 90)'
}),
dark_darker: Platform.select({
ios: PlatformColor('separator') as unknown as string,
default: 'rgb(90, 90, 90)'
})
},
shimmerDefault: {