HelpPage.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. import {StyleSheet, Text, TouchableOpacity, View} from 'react-native';
  2. import React from 'react';
  3. import NewscoutTitleHeader from '../components/organisms/Headers/NewscoutTitleHeader';
  4. import {List} from 'react-native-paper';
  5. import fonts from '../theme/fonts';
  6. import EntypoIcon from 'react-native-vector-icons/Entypo';
  7. import colors from '../theme/colors';
  8. const HelpPage = props => {
  9. const {navigation} = props;
  10. const listItems = [
  11. {
  12. id: 0,
  13. title: 'FAQ',
  14. onPress: () => navigation.navigate('FAQ'),
  15. },
  16. {
  17. id: 1,
  18. title: 'Contact Us',
  19. onPress: () => navigation.navigate('ContactUs'),
  20. },
  21. {
  22. id: 2,
  23. title: 'Terms & Conditions',
  24. onPress: () => navigation.navigate('Terms&Conditions'),
  25. },
  26. {
  27. id: 3,
  28. title: 'Privacy Policy',
  29. onPress: () => navigation.navigate('PrivacyPolicy'),
  30. },
  31. {
  32. id: 4,
  33. title: 'About Us',
  34. onPress: () => navigation.navigate('AboutUs'),
  35. },
  36. ];
  37. return (
  38. <View>
  39. <NewscoutTitleHeader
  40. title={'Help'}
  41. backButtonShown
  42. onBackClick={() => navigation.goBack()}
  43. />
  44. {listItems.map(item => (
  45. <TouchableOpacity onPress={item.onPress}>
  46. <List.Item
  47. title={item.title}
  48. titleStyle={styles.listItemText}
  49. style={styles.listItem}
  50. key={item.id}
  51. right={props => (
  52. <EntypoIcon
  53. name="chevron-thin-right"
  54. size={16}
  55. color={colors.black}
  56. />
  57. )}
  58. />
  59. </TouchableOpacity>
  60. ))}
  61. </View>
  62. );
  63. };
  64. export default HelpPage;
  65. const styles = StyleSheet.create({
  66. listItemText: {
  67. fontFamily: fonts.type.medium,
  68. },
  69. listItem: {
  70. height: 64,
  71. justifyContent: 'center',
  72. },
  73. });