|
|
@ -5,7 +5,6 @@ import { |
|
|
|
Text, |
|
|
|
Text, |
|
|
|
Dimensions, |
|
|
|
Dimensions, |
|
|
|
Image, |
|
|
|
Image, |
|
|
|
Appearance, |
|
|
|
|
|
|
|
Platform, |
|
|
|
Platform, |
|
|
|
} from "react-native"; |
|
|
|
} from "react-native"; |
|
|
|
import { connect } from "react-redux"; |
|
|
|
import { connect } from "react-redux"; |
|
|
@ -17,12 +16,11 @@ import tw from "tailwind-rn"; |
|
|
|
import fontSize from "../../../constants/fontSize"; |
|
|
|
import fontSize from "../../../constants/fontSize"; |
|
|
|
import Colors from "../../../constants/Colors"; |
|
|
|
import Colors from "../../../constants/Colors"; |
|
|
|
|
|
|
|
|
|
|
|
const { height, width } = Dimensions.get("window"); |
|
|
|
const { width } = Dimensions.get("window"); |
|
|
|
const ios = Platform.OS === "ios"; |
|
|
|
const ios = Platform.OS === "ios"; |
|
|
|
|
|
|
|
|
|
|
|
export const Single = ({ blog }) => { |
|
|
|
export const Single = ({ blog, theme }) => { |
|
|
|
const navigation = useNavigation(); |
|
|
|
const navigation = useNavigation(); |
|
|
|
const colorScheme = Appearance.getColorScheme(); |
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<Pressable |
|
|
|
<Pressable |
|
|
|
style={tw("flex ")} |
|
|
|
style={tw("flex ")} |
|
|
@ -111,7 +109,7 @@ export const Single = ({ blog }) => { |
|
|
|
style={{ |
|
|
|
style={{ |
|
|
|
fontFamily: "bold", |
|
|
|
fontFamily: "bold", |
|
|
|
fontSize: fontSize.lg, |
|
|
|
fontSize: fontSize.lg, |
|
|
|
color: Colors.theme1[colorScheme].gray20, |
|
|
|
color: Colors.theme1[theme].gray20, |
|
|
|
textAlign: ios ? "right" : "auto", |
|
|
|
textAlign: ios ? "right" : "auto", |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
@ -121,7 +119,7 @@ export const Single = ({ blog }) => { |
|
|
|
style={{ |
|
|
|
style={{ |
|
|
|
fontFamily: "regular", |
|
|
|
fontFamily: "regular", |
|
|
|
fontSize: fontSize.sm, |
|
|
|
fontSize: fontSize.sm, |
|
|
|
color: Colors.theme1[colorScheme].gray2077, |
|
|
|
color: Colors.theme1[theme].gray2077, |
|
|
|
lineHeight: 25, |
|
|
|
lineHeight: 25, |
|
|
|
marginTop: 10, |
|
|
|
marginTop: 10, |
|
|
|
textAlign: ios ? "right" : "auto", |
|
|
|
textAlign: ios ? "right" : "auto", |
|
|
@ -140,6 +138,7 @@ export const Single = ({ blog }) => { |
|
|
|
|
|
|
|
|
|
|
|
const mapStateToProps = (state) => ({ |
|
|
|
const mapStateToProps = (state) => ({ |
|
|
|
blog: state.blog.list[0], |
|
|
|
blog: state.blog.list[0], |
|
|
|
|
|
|
|
theme: state.publicApi.theme |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
const mapDispatchToProps = {}; |
|
|
|
const mapDispatchToProps = {}; |
|
|
|