diff --git a/app/containers/Main/index.js b/app/containers/Main/index.js index dab15762..3caecde5 100644 --- a/app/containers/Main/index.js +++ b/app/containers/Main/index.js @@ -1,5 +1,5 @@ import React, { Component } from 'react'; -import { Container, Content, Text, Spinner, Item, Input, Header } from 'native-base'; +import { Container, Content, Text, Spinner, Item, Input, Header, Card, CardItem, Left, Thumbnail, Body } from 'native-base'; import Icon from 'react-native-vector-icons/FontAwesome'; import { Image, @@ -9,11 +9,14 @@ import { ActivityIndicator, KeyboardAvoidingView, ScrollView, + Modal, + TouchableHighlight, Animated, Keyboard } from 'react-native'; import { Actions } from 'react-native-router-flux'; import AccountKit, { LoginButton } from 'react-native-facebook-account-kit'; +import {PagerTabIndicator, IndicatorViewPager, PagerTitleIndicator, PagerDotIndicator} from 'rn-viewpager'; import { createTransition, Fade } from 'react-native-transition'; import { getProfileEmail } from '../../helpers'; @@ -42,7 +45,7 @@ class Main extends Component { } state = { - modalVisible: false + modalVisible: true }; componentWillMount() { @@ -136,6 +139,106 @@ class Main extends Component { + {this.setModalVisible(!this.state.modalVisible)}} + > + + + + + + + Lorem Ipsum is simply dummy text of the printing and typesetting industry. + + + + + + + + + Lorem Ipsum is simply dummy text of the printing and typesetting industry. + + + + + + + + + Lorem Ipsum is simply dummy text of the printing and typesetting industry. + + + + + + + + + ); } + +_renderDotIndicator() { + return ; +} + } Main.propTypes = { diff --git a/package.json b/package.json index 78ac1aa1..2f223f1d 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ "redux-immutable": "^4.0.0", "redux-thunk": "^2.2.0", "reselect": "^3.0.1", + "rn-viewpager": "^1.2.4", "socket.io-client": "^1.4.8" }, "devDependencies": {