Authored by 盖剑秋

Part of like list. reivewed by redding.

... ... @@ -36,6 +36,7 @@ import postingInitialState from './reducers/posting/postingInitialState';
import subjectPostInitialState from './reducers/subject/subjectPostInitialState';
import userInitialState from './reducers/user/userInitialState';
import userThatNotMeInitialState from './reducers/userThatNotMe/userThatNotMeInitialState';
import likeListInitialState from '.reducers/likeList/likeListInitialState';
import HomeContainer from './containers/HomeContainer';
import SectionContainer from './containers/SectionContainer';
... ... @@ -46,6 +47,7 @@ import LikeMessageContainer from './containers/LikeMessageContainer';
import SubjectPostContainer from './containers/SubjectPostContainer';
import PostingContainer from './containers/PostingContainer';
import SettingContainer from './containers/UserSettingContainer';
import LikeListContainer from './containers/LikeListContainer';
import NavBar from './components/NavBar';
... ... @@ -89,6 +91,7 @@ function getInitialState() {
user: (new userInitialState()),
subject: (new subjectPostInitialState()),
userThatNotMe: (new userThatNotMeInitialState()),
likeList: (new likeListInitialState()),
};
return _initState;
}
... ... @@ -267,6 +270,14 @@ export default function community(platform) {
/>
<Scene
key='LikeList'
title='共0个赞'
hideNavBar={false}
component={LikeListContainer}
initial={false}
/>
<Scene
key='Posting'
title='主题帖'
hideNavBar={false}
... ...
... ... @@ -137,4 +137,8 @@ export default keyMirror({
SUBJECT_REPLY_SUCCESS: null,
SUBJECT_REPLY_FAILURE: null,
SUBJECT_REPLY_UPDATE: null,
LIKE_LIST_REQUEST: null,
LIKE_LIST_SUCCESS: null,
LIKE_LIST_FAILURE: null,
});
... ...
'use strict';
import React, {Component} from 'react';
import {
View,
StyleSheet,
Dimensions,
Platform,
InteractionManager,
NativeModules,
} from 'react-native';
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import {Map} from 'immutable';
import timeago from 'timeago.js';
import Immutable, {List, Record} from 'immutable';
import {Actions} from 'react-native-router-flux';
import SubjectPost from '../components/subjectPost/SubjectPost';
import * as subjectPostActions from '../reducers/subject/subjectPostActions';
import {shouldShowTabBar, shouldHideTabBar} from '../utils/tabBar';
... ...
'use strict';
import {Actions} from 'react-native-router-flux';
import PostingService from '../../services/PostingService';
import Immutable, {List, Record} from 'immutable';
const {
LIKE_LIST_REQUEST,
LIKE_LIST_SUCCESS,
LIKE_LIST_FAILURE,
} = require('../../constants/actionTypes').default;
... ...
'use strict';
import Immutable, {List, Record} from 'immutable';
... ...
'use strict';
/**
* ## Imports
*
* InitialState
*/
import InitialState from './likeListInitialState';
import Immutable, {List, Record} from 'immutable';
... ...