From 6958cdcfcb744b9d72b3b50d3c53e501812857e8 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Mon, 30 Sep 2019 12:23:00 +0100 Subject: [PATCH] implement suggested subscriptions modal --- .../modalSuggestedSubscriptions/index.js | 4 ++ .../modalSuggestedSubscriptions/view.js | 26 ++++++++++ src/component/suggestedSubscriptions/view.js | 10 ++-- src/page/subscriptions/view.js | 47 ++++++++++++------ src/styles/modal.js | 48 +++++++++++++++++++ src/styles/subscriptions.js | 21 +++++++- 6 files changed, 137 insertions(+), 19 deletions(-) create mode 100644 src/component/modalSuggestedSubscriptions/index.js create mode 100644 src/component/modalSuggestedSubscriptions/view.js create mode 100644 src/styles/modal.js diff --git a/src/component/modalSuggestedSubscriptions/index.js b/src/component/modalSuggestedSubscriptions/index.js new file mode 100644 index 0000000..6eef7f4 --- /dev/null +++ b/src/component/modalSuggestedSubscriptions/index.js @@ -0,0 +1,4 @@ +import { connect } from 'react-redux'; +import ModalSuggestedSubscriptions from './view'; + +export default connect()(ModalSuggestedSubscriptions); diff --git a/src/component/modalSuggestedSubscriptions/view.js b/src/component/modalSuggestedSubscriptions/view.js new file mode 100644 index 0000000..0c8765e --- /dev/null +++ b/src/component/modalSuggestedSubscriptions/view.js @@ -0,0 +1,26 @@ +import React from 'react'; +import { ScrollView, Text, TouchableOpacity, View } from 'react-native'; +import modalStyle from 'styles/modal'; +import subscriptionsStyle from 'styles/subscriptions'; +import Button from 'component/button'; +import Colors from 'styles/colors'; +import SuggestedSubscriptions from 'component/suggestedSubscriptions'; +import Constants from 'constants'; // eslint-disable-line node/no-deprecated-api +import Icon from 'react-native-vector-icons/FontAwesome5'; + +export default class ModalSuggestedSubcriptions extends React.PureComponent { + render() { + const { navigation, onDonePress, onOverlayPress } = this.props; + + return ( + + + + +