|
@@ -43,6 +43,7 @@ import SectionHeader from '../../components/molecules/Header/SectionHeader';
|
|
|
import VerticalNewsCard from '../../components/molecules/Cards/VerticalNewsCard';
|
|
|
import { TextInput } from 'react-native-paper';
|
|
|
import FormTextInput from '../../components/atoms/Input/FormTextInput';
|
|
|
+import OctiIcon from 'react-native-vector-icons/Octicons'
|
|
|
|
|
|
const NewsDetailPage = props => {
|
|
|
const { navigation, route } = props;
|
|
@@ -113,7 +114,7 @@ const NewsDetailPage = props => {
|
|
|
flexDirection: 'row',
|
|
|
gap: horizontalScale(8)
|
|
|
},
|
|
|
- hashTag:{
|
|
|
+ hashTag: {
|
|
|
color: colors().primaryColor,
|
|
|
backgroundColor: colors().dominant_variant,
|
|
|
padding: moderateScale(4),
|
|
@@ -171,7 +172,7 @@ const NewsDetailPage = props => {
|
|
|
},
|
|
|
commentInput: {
|
|
|
marginVertical: verticalScale(16),
|
|
|
- alignItems:'stretch',
|
|
|
+ alignItems: 'stretch',
|
|
|
// backgroundColor: colors().black_variant,
|
|
|
flexDirection: 'row',
|
|
|
flex: 1
|
|
@@ -208,16 +209,20 @@ const NewsDetailPage = props => {
|
|
|
backgroundColor: colors().dominant,
|
|
|
flexDirection: 'row',
|
|
|
},
|
|
|
+ heading: {
|
|
|
+ flexDirection: 'row',
|
|
|
+ gap: horizontalScale(8)
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
return (
|
|
|
<BottomSheetModalProvider>
|
|
|
<ScrollView ref={mainPageRef} contentContainerStyle={styles.container}>
|
|
|
- <NewscoutTitleHeader
|
|
|
+ <NewscoutTitleHeader headerStyle={{elevation: 0}}
|
|
|
backButtonShown
|
|
|
onBackClick={() => navigation.goBack()}>
|
|
|
<TouchableWithoutFeedback onPress={() => navigation.toggleDrawer()}>
|
|
|
- <MaterialIcon name="list" color={colors().primaryColor} size={30} />
|
|
|
+ <OctiIcon name="three-bars" color={colors().primaryColor} size={moderateScale(24)} />
|
|
|
</TouchableWithoutFeedback>
|
|
|
</NewscoutTitleHeader>
|
|
|
{isLoading === true ? (
|
|
@@ -302,21 +307,33 @@ const NewsDetailPage = props => {
|
|
|
paddingHorizontal: horizontalScale(24),
|
|
|
}}>
|
|
|
<BottomSheetView style={styles.commentInputContainer}>
|
|
|
- <Text
|
|
|
- style={{
|
|
|
- fontFamily: fonts.type.semibold,
|
|
|
- color: colors().recessive,
|
|
|
- fontSize: moderateScale(16),
|
|
|
- }}>
|
|
|
- Comments
|
|
|
- </Text>
|
|
|
- <ButtonWrapper onPress={handleCloseModalPress}>
|
|
|
- <IonIcon
|
|
|
- name="close-sharp"
|
|
|
- size={moderateScale(20)}
|
|
|
- color={colors().recessive}
|
|
|
- />
|
|
|
- </ButtonWrapper>
|
|
|
+ <BottomSheetView style={styles.heading}>
|
|
|
+ <Text
|
|
|
+ style={{
|
|
|
+ fontFamily: fonts.type.semibold,
|
|
|
+ color: colors().recessive,
|
|
|
+ fontSize: moderateScale(16),
|
|
|
+ }}>
|
|
|
+ Comments
|
|
|
+ </Text>
|
|
|
+ <Text
|
|
|
+ style={{
|
|
|
+ fontFamily: fonts.type.semibold,
|
|
|
+ color: colors().recessive,
|
|
|
+ fontSize: moderateScale(16),
|
|
|
+ color: colors().primaryColor
|
|
|
+ }}>
|
|
|
+ {comments.results.length}
|
|
|
+ </Text>
|
|
|
+ </BottomSheetView>
|
|
|
+ <ButtonWrapper onPress={handleCloseModalPress}>
|
|
|
+ <IonIcon
|
|
|
+ name="close-sharp"
|
|
|
+ size={moderateScale(20)}
|
|
|
+ color={colors().recessive}
|
|
|
+ />
|
|
|
+ </ButtonWrapper>
|
|
|
+
|
|
|
</BottomSheetView>
|
|
|
<BottomSheetView style={styles.commentInput}>
|
|
|
<Image
|
|
@@ -324,35 +341,35 @@ const NewsDetailPage = props => {
|
|
|
style={[styles.profileImage]}
|
|
|
/>
|
|
|
{/* <View style={{}}> */}
|
|
|
- <TextInput
|
|
|
- multiline
|
|
|
- mode="outlined"
|
|
|
- placeholder='Add your Comment Here'
|
|
|
- placeholderTextColor={colors().grayShade_400}
|
|
|
- dense
|
|
|
- style={{
|
|
|
- backgroundColor: colors().dominant,
|
|
|
- height: verticalScale(64),
|
|
|
- // justifyContent:'',
|
|
|
- flexGrow: 1
|
|
|
-
|
|
|
- }}
|
|
|
- contentStyle={{
|
|
|
- color: colors().recessive,
|
|
|
- fontFamily: fonts.type.regular,
|
|
|
- fontSize: moderateScale(16),
|
|
|
-
|
|
|
- }}
|
|
|
- outlineStyle={{
|
|
|
- borderRadius: moderateScale(16),
|
|
|
- borderColor: colors().secondaryColor
|
|
|
-
|
|
|
+ <TextInput
|
|
|
+ multiline
|
|
|
+ mode="outlined"
|
|
|
+ placeholder='Add your Comment Here'
|
|
|
+ placeholderTextColor={colors().grayShade_400}
|
|
|
+ dense
|
|
|
+ style={{
|
|
|
+ backgroundColor: colors().dominant,
|
|
|
+ height: verticalScale(64),
|
|
|
+ // justifyContent:'',
|
|
|
+ flexGrow: 1
|
|
|
|
|
|
- // borderColor: colors().dominant,
|
|
|
- }}
|
|
|
- cursorColor={colors().primaryColor}
|
|
|
- />
|
|
|
- {/* <FormTextInput/> */}
|
|
|
+ }}
|
|
|
+ contentStyle={{
|
|
|
+ color: colors().recessive,
|
|
|
+ fontFamily: fonts.type.regular,
|
|
|
+ fontSize: moderateScale(16),
|
|
|
+
|
|
|
+ }}
|
|
|
+ outlineStyle={{
|
|
|
+ borderRadius: moderateScale(16),
|
|
|
+ borderColor: colors().secondaryColor
|
|
|
+
|
|
|
+
|
|
|
+ // borderColor: colors().dominant,
|
|
|
+ }}
|
|
|
+ cursorColor={colors().primaryColor}
|
|
|
+ />
|
|
|
+ {/* <FormTextInput/> */}
|
|
|
{/* </View> */}
|
|
|
|
|
|
</BottomSheetView>
|