Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
YH_RNComponent
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
陈林
6 years ago
Commit
8c05e253cf48e141f3727f17c0977ef5f8f6433f
1 parent
cdaf8153
增加分享调用方法。review by 张文文。
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
js/alliance/components/InvitedFriends.js
js/alliance/containers/InvitedFriendsContainer.js
js/alliance/components/InvitedFriends.js
View file @
8c05e25
...
...
@@ -110,7 +110,7 @@ export default class InvitedFriends extends Component {
}}
/
>
<
TouchableOpacity
activeOpacity
=
{
1
}
style
=
{
styles
.
touchableStyle
}
onPress
=
{()
=>
{
//有货有赚调原生
this
.
props
.
shareForInvite
&&
this
.
props
.
shareForInvite
();
}}
>
<
Text
style
=
{
styles
.
buttonStyle
}
>
邀请好友加入有货有赚
<
/Text
>
<
/TouchableOpacity
>
...
...
js/alliance/containers/InvitedFriendsContainer.js
View file @
8c05e25
'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
>
)
...
...
Please
register
or
login
to post a comment