Finish cleaning up theme stuff
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import { StyleSheet, ViewProps, Platform, DimensionValue } from 'react-native';
|
||||
import { ThemedView } from '@/components/theme';
|
||||
import ThemedView from '@/components/theme/default/ThemedView';
|
||||
import { Colors } from '@/constants/Colors';
|
||||
import { useColorScheme } from '@/hooks/useColorScheme';
|
||||
|
||||
@@ -23,7 +23,7 @@ const ThemedCard: React.FC<ThemedCardProps> = ({
|
||||
...restProps
|
||||
}) => {
|
||||
const scheme = useColorScheme() ?? 'dark';
|
||||
|
||||
|
||||
return (
|
||||
<ThemedView
|
||||
style={[
|
||||
@@ -37,7 +37,7 @@ const ThemedCard: React.FC<ThemedCardProps> = ({
|
||||
...Platform.select({
|
||||
ios: {
|
||||
shadowColor: Colors[scheme].text,
|
||||
shadowOffset: { width: 0, height: elevation/2 },
|
||||
shadowOffset: { width: 0, height: elevation / 2 },
|
||||
shadowOpacity: 0.1,
|
||||
shadowRadius: elevation,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user