|
|
'use strict';
|
|
|
|
|
|
import React, { Component } from 'react';
|
|
|
import { StyleSheet, View } from "react-native";
|
|
|
import ReactNative, { StyleSheet, View } from "react-native";
|
|
|
import { bindActionCreators } from 'redux';
|
|
|
import { connect } from 'react-redux';
|
|
|
import { Map } from 'immutable';
|
...
|
...
|
@@ -51,6 +51,10 @@ class InvitedFriendsContainer extends Component { |
|
|
this.props.actions.getInvitedFriends();
|
|
|
}
|
|
|
|
|
|
_shareForInvite() {
|
|
|
ReactNative.NativeModules.YH_CommonHelper.shareCpsInvite();
|
|
|
}
|
|
|
|
|
|
render() {
|
|
|
let {invitedFriendsList} = this.props.alliance;
|
|
|
let isFetching = invitedFriendsList.isFetching;
|
...
|
...
|
@@ -58,7 +62,8 @@ class InvitedFriendsContainer extends Component { |
|
|
<View style={styles.container}>
|
|
|
<InvitedFriends
|
|
|
invitedFriendsList={invitedFriendsList}
|
|
|
onEndReached={this._onEndReached}/>
|
|
|
onEndReached={this._onEndReached}
|
|
|
shareForInvite={this._shareForInvite}/>
|
|
|
<LoadingIndicator isVisible={isFetching}/>
|
|
|
</View>
|
|
|
)
|
...
|
...
|
|