|
|
|
@ -17,12 +17,11 @@ import tw from "tailwind-rn"; |
|
|
|
|
import fontSize from "../../../constants/fontSize"; |
|
|
|
|
import Colors from "../../../constants/Colors"; |
|
|
|
|
|
|
|
|
|
const { height, width } = Dimensions.get("window"); |
|
|
|
|
const { width } = Dimensions.get("window"); |
|
|
|
|
const ios = Platform.OS === "ios"; |
|
|
|
|
|
|
|
|
|
const Target = ({ blogs }) => { |
|
|
|
|
const Target = ({ blogs, theme }) => { |
|
|
|
|
const navigation = useNavigation(); |
|
|
|
|
const colorScheme = Appearance.getColorScheme(); |
|
|
|
|
const Large = ({ blog }) => { |
|
|
|
|
return ( |
|
|
|
|
<Pressable |
|
|
|
@ -74,7 +73,7 @@ const Target = ({ blogs }) => { |
|
|
|
|
style={[ |
|
|
|
|
{ |
|
|
|
|
fontFamily: "bold", |
|
|
|
|
color: Colors.theme1[colorScheme].gray20, |
|
|
|
|
color: Colors.theme1[theme].gray20, |
|
|
|
|
fontSize: fontSize.tiny, |
|
|
|
|
}, |
|
|
|
|
]} |
|
|
|
@ -85,7 +84,7 @@ const Target = ({ blogs }) => { |
|
|
|
|
style={[ |
|
|
|
|
{ |
|
|
|
|
fontFamily: "regular", |
|
|
|
|
color: Colors.theme1[colorScheme].gray20, |
|
|
|
|
color: Colors.theme1[theme].gray20, |
|
|
|
|
fontSize: fontSize.xs, |
|
|
|
|
}, |
|
|
|
|
]} |
|
|
|
@ -99,7 +98,7 @@ const Target = ({ blogs }) => { |
|
|
|
|
style={[ |
|
|
|
|
{ |
|
|
|
|
fontFamily: "bold", |
|
|
|
|
color: Colors.theme1[colorScheme].gray20, |
|
|
|
|
color: Colors.theme1[theme].gray20, |
|
|
|
|
fontSize: fontSize.sm, |
|
|
|
|
}, |
|
|
|
|
]} |
|
|
|
@ -111,7 +110,7 @@ const Target = ({ blogs }) => { |
|
|
|
|
tw("mt-0"), |
|
|
|
|
{ |
|
|
|
|
fontFamily: "bold", |
|
|
|
|
color: Colors.theme1[colorScheme].gray20, |
|
|
|
|
color: Colors.theme1[theme].gray20, |
|
|
|
|
fontSize: fontSize.sm, |
|
|
|
|
}, |
|
|
|
|
]} |
|
|
|
@ -167,4 +166,8 @@ const Target = ({ blogs }) => { |
|
|
|
|
); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
export default Target; |
|
|
|
|
const mapStateToProps = (state) => ({ |
|
|
|
|
theme: state.publicApi.theme, |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
export default connect(mapStateToProps)(Target); |
|
|
|
|