|
@@ -43,6 +43,7 @@ import SectionHeader from '../../components/molecules/Header/SectionHeader';
|
|
import VerticalNewsCard from '../../components/molecules/Cards/VerticalNewsCard';
|
|
import VerticalNewsCard from '../../components/molecules/Cards/VerticalNewsCard';
|
|
import { TextInput } from 'react-native-paper';
|
|
import { TextInput } from 'react-native-paper';
|
|
import FormTextInput from '../../components/atoms/Input/FormTextInput';
|
|
import FormTextInput from '../../components/atoms/Input/FormTextInput';
|
|
|
|
+import OctiIcon from 'react-native-vector-icons/Octicons'
|
|
|
|
|
|
const NewsDetailPage = props => {
|
|
const NewsDetailPage = props => {
|
|
const { navigation, route } = props;
|
|
const { navigation, route } = props;
|
|
@@ -113,7 +114,7 @@ const NewsDetailPage = props => {
|
|
flexDirection: 'row',
|
|
flexDirection: 'row',
|
|
gap: horizontalScale(8)
|
|
gap: horizontalScale(8)
|
|
},
|
|
},
|
|
- hashTag:{
|
|
|
|
|
|
+ hashTag: {
|
|
color: colors().primaryColor,
|
|
color: colors().primaryColor,
|
|
backgroundColor: colors().dominant_variant,
|
|
backgroundColor: colors().dominant_variant,
|
|
padding: moderateScale(4),
|
|
padding: moderateScale(4),
|
|
@@ -171,7 +172,7 @@ const NewsDetailPage = props => {
|
|
},
|
|
},
|
|
commentInput: {
|
|
commentInput: {
|
|
marginVertical: verticalScale(16),
|
|
marginVertical: verticalScale(16),
|
|
- alignItems:'stretch',
|
|
|
|
|
|
+ alignItems: 'stretch',
|
|
// backgroundColor: colors().black_variant,
|
|
// backgroundColor: colors().black_variant,
|
|
flexDirection: 'row',
|
|
flexDirection: 'row',
|
|
flex: 1
|
|
flex: 1
|
|
@@ -208,16 +209,20 @@ const NewsDetailPage = props => {
|
|
backgroundColor: colors().dominant,
|
|
backgroundColor: colors().dominant,
|
|
flexDirection: 'row',
|
|
flexDirection: 'row',
|
|
},
|
|
},
|
|
|
|
+ heading: {
|
|
|
|
+ flexDirection: 'row',
|
|
|
|
+ gap: horizontalScale(8)
|
|
|
|
+ }
|
|
});
|
|
});
|
|
|
|
|
|
return (
|
|
return (
|
|
<BottomSheetModalProvider>
|
|
<BottomSheetModalProvider>
|
|
<ScrollView ref={mainPageRef} contentContainerStyle={styles.container}>
|
|
<ScrollView ref={mainPageRef} contentContainerStyle={styles.container}>
|
|
- <NewscoutTitleHeader
|
|
|
|
|
|
+ <NewscoutTitleHeader headerStyle={{elevation: 0}}
|
|
backButtonShown
|
|
backButtonShown
|
|
onBackClick={() => navigation.goBack()}>
|
|
onBackClick={() => navigation.goBack()}>
|
|
<TouchableWithoutFeedback onPress={() => navigation.toggleDrawer()}>
|
|
<TouchableWithoutFeedback onPress={() => navigation.toggleDrawer()}>
|
|
- <MaterialIcon name="list" color={colors().primaryColor} size={30} />
|
|
|
|
|
|
+ <OctiIcon name="three-bars" color={colors().primaryColor} size={moderateScale(24)} />
|
|
</TouchableWithoutFeedback>
|
|
</TouchableWithoutFeedback>
|
|
</NewscoutTitleHeader>
|
|
</NewscoutTitleHeader>
|
|
{isLoading === true ? (
|
|
{isLoading === true ? (
|
|
@@ -302,21 +307,33 @@ const NewsDetailPage = props => {
|
|
paddingHorizontal: horizontalScale(24),
|
|
paddingHorizontal: horizontalScale(24),
|
|
}}>
|
|
}}>
|
|
<BottomSheetView style={styles.commentInputContainer}>
|
|
<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>
|
|
<BottomSheetView style={styles.commentInput}>
|
|
<BottomSheetView style={styles.commentInput}>
|
|
<Image
|
|
<Image
|
|
@@ -324,35 +341,35 @@ const NewsDetailPage = props => {
|
|
style={[styles.profileImage]}
|
|
style={[styles.profileImage]}
|
|
/>
|
|
/>
|
|
{/* <View style={{}}> */}
|
|
{/* <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> */}
|
|
{/* </View> */}
|
|
|
|
|
|
</BottomSheetView>
|
|
</BottomSheetView>
|