Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, { Component } from 'react';
- import { View, Text, TouchableOpacity, ScrollView, StyleSheet } from 'react-native';
- import { color } from '../constants/StyleConstants';
- import AppHeader from '../components/AppHeader';
- import Permissions from 'react-native-permissions';
- import ConnectivityManager from 'react-native-connectivity-status'
- import AppUser from '../apiServices/AppUser'
- import { StackActions, NavigationActions } from 'react-navigation';
- import Store from 'rn-json-store';
- import {USER_TOKEN} from '../constants/KeyConstants';
- import CalenderThreeDay from "./CalenderThreeDay";
- import CalendarDayView from "./CalendarDayView";
- import CalendarYearView from "./CalendarYearView";
- import ShareWithCalendar from "./ShareWithCalendar";
- import ShareWithAccount from "./ShareWithAccount";
- import CalendarSetting from "./CalendarSetting";
- import userStore from '../mobx/UserStore'
- import { strings } from '../localization/Localization';
- let appUser = AppUser.getInstance()
- var classObj
- export default class Dashboard extends Component {
- constructor(props){
- super(props);
- classObj=this;
- }
- componentWillMount() {
- console.log('ji');
- userStore.setListCategory(strings.GENERAL, 0);
- appUser.locationPermission()
- }
- onAddButtonPress() {
- classObj.props.navigation.navigate('CreateList');
- }
- onHomePress(){
- }
- render() {
- return (
- <View style={{ flex: 1, backgroundColor: color.WHITE_COLOR, alignItems: 'center' }}>
- <AppHeader onAddButton={this.onAddButtonPress} onHomePress={this.onHomePress}/>
- {/* <Text>dashboard</Text> */}
- <ScrollView showsVerticalScrollIndicator={false} style={{flex:1,width:"100%"}}>
- <View style={{alignItems:'center'}}>
- <TouchableOpacity style={style.button} onPress={() => {
- this.props.navigation.navigate({ routeName: CalendarYearView.SCREEN_KEY });
- }}>
- <Text>Calender Year View</Text>
- </TouchableOpacity>
- </View>
- </ScrollView>
- </View>
- );
- }
- }
- const style = StyleSheet.create({
- button: {
- width: 100, height: 50, backgroundColor: 'grey', justifyContent: 'center', alignItems: 'center', marginTop: 50
- }
- });
Add Comment
Please, Sign In to add comment