File tree 8 files changed +67
-2859
lines changed
8 files changed +67
-2859
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ PODS:
226
226
- React
227
227
- RNGestureHandler (1.5.2):
228
228
- React
229
- - RNLine (2.0.0 ):
229
+ - RNLine (2.0.1 ):
230
230
- LineSDKSwift (~> 5.0)
231
231
- React
232
232
- RNReanimated (1.4.0):
@@ -375,7 +375,7 @@ SPEC CHECKSUMS:
375
375
ReactNativeLocalization: dbb269b27d8a84bb22b9c2cdec38ba780b51dd72
376
376
RNCAsyncStorage: 44395cb9c7c1523104c2b499eb426ef7aff82bca
377
377
RNGestureHandler: 946a7691e41df61e2c4b1884deab41a4cdc3afff
378
- RNLine: cd30f81208647017750cbfcf0223f57946652efe
378
+ RNLine: 677e5a14ab348c2085452cdad1a2ac68795717d9
379
379
RNReanimated: b2ab0b693dddd2339bd2f300e770f6302d2e960c
380
380
RNScreens: 36f8c83e5e23b6bfd5b912148453d81e335573eb
381
381
RNSVG: ce9d996113475209013317e48b05c21ee988d42e
Original file line number Diff line number Diff line change 23
23
"react-navigation" : " ^4.0.10" ,
24
24
"react-navigation-stack" : " ^1.9.3" ,
25
25
"react-navigation-tabs" : " ^2.5.6" ,
26
- "@xmartlabs/react-native-line" : " ^2.0.0 "
26
+ "@xmartlabs/react-native-line" : " ^2.0.1 "
27
27
},
28
28
"devDependencies" : {
29
29
"@babel/core" : " ^7.6.2" ,
Original file line number Diff line number Diff line change @@ -10,15 +10,15 @@ export const TabNavigator = createBottomTabNavigator(
10
10
{
11
11
[ Route . UserTab ] : {
12
12
navigationOptions : {
13
- tabBarLabel : ( { tintColor } ) => (
13
+ tabBarIcon : ( { tintColor } ) => (
14
14
< Text style = { { color : tintColor } } > User</ Text >
15
15
) ,
16
16
} ,
17
17
screen : UserStack ,
18
18
} ,
19
19
[ Route . API ] : {
20
20
navigationOptions : {
21
- tabBarLabel : ( { tintColor } ) => (
21
+ tabBarIcon : ( { tintColor } ) => (
22
22
< Text style = { { color : tintColor } } > API</ Text >
23
23
) ,
24
24
} ,
@@ -27,6 +27,9 @@ export const TabNavigator = createBottomTabNavigator(
27
27
} ,
28
28
{
29
29
initialRouteName : Route . UserTab ,
30
+ tabBarOptions : {
31
+ showLabel : false ,
32
+ } ,
30
33
lazy : false ,
31
34
} ,
32
35
)
Original file line number Diff line number Diff line change 1087
1087
dependencies :
1088
1088
" @types/yargs-parser" " *"
1089
1089
1090
- " @xmartlabs/react-native-line@^2.0.0 " :
1091
- version "2.0.0 "
1092
- resolved "https://registry.yarnpkg.com/@xmartlabs/react-native-line/-/react-native-line-2.0.0 .tgz#d8e8834b65f88f10875bf16c6a20360aa67753d5 "
1093
- integrity sha512-zCixb3o75hxEqqdUmA7lyS708btT0sz06Pz7MorndoAxPDr8EhzcytoutitW5k4Sl+bIXq3LiBvrCsEQ/KGtRA ==
1090
+ " @xmartlabs/react-native-line@^2.0.1 " :
1091
+ version "2.0.1 "
1092
+ resolved "https://registry.yarnpkg.com/@xmartlabs/react-native-line/-/react-native-line-2.0.1 .tgz#1b9879406aa7c5e1ebf7cde5bfa18939afb0ecd0 "
1093
+ integrity sha512-KD4+svfYw1jSAmc6bn0GirPc02UtVkz8ULnaLgVphkEKhHQcCqf56ZoLYXUwSVLvvNK2lV0EdegYu12ourCtSg ==
1094
1094
1095
1095
abab@^2.0.0 :
1096
1096
version "2.0.3"
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export const deserializeLoginResult = (data: any): LoginResult => ({
11
11
accessToken : deserializeAccessToken ( data . accessToken ) ,
12
12
friendshipStatusChanged : data . friendshipStatusChanged ,
13
13
scope : data . scope ,
14
- userProfile : data . userProfile ,
14
+ userProfile : deserializeUserProfile ( data . userProfile ) ,
15
15
} )
16
16
17
17
export const deserializeAccessToken = ( data : any ) : AccessToken => ( {
@@ -24,7 +24,7 @@ export const deserializeUserProfile = (data: any): UserProfile => ({
24
24
displayName : data . displayName ,
25
25
pictureURL : data . pictureURL ?? undefined ,
26
26
statusMessage : data . statusMessage ?? undefined ,
27
- userID : data . userID ,
27
+ userID : data . userId ?? data . userID ,
28
28
} )
29
29
30
30
export const deserializeVerifyAccessToken = (
Original file line number Diff line number Diff line change 7
7
refreshToken as LineSDKRefreshToken ,
8
8
verifyAccessToken as LineSDKVerifyAccessToken ,
9
9
} from './lineSDKWrapper'
10
+ import { LoginArguments } from './types'
10
11
11
12
export {
12
13
BotFriendshipStatus ,
@@ -29,7 +30,7 @@ export default {
29
30
getProfile ( ) {
30
31
return LineSDKGetProfile ( )
31
32
} ,
32
- login ( args = { } ) {
33
+ login ( args : LoginArguments = { } ) {
33
34
return LineSDKLogin ( args )
34
35
} ,
35
36
logout ( ) {
Original file line number Diff line number Diff line change @@ -13,13 +13,12 @@ import {
13
13
BotFriendshipStatus ,
14
14
LoginResult ,
15
15
UserProfile ,
16
+ LoginArguments ,
16
17
} from './types'
17
18
18
19
const { LineLogin } = NativeModules
19
20
20
- export const getBotFriendshipStatus = async ( ) : Promise <
21
- BotFriendshipStatus
22
- > => {
21
+ export const getBotFriendshipStatus = async ( ) : Promise < BotFriendshipStatus > => {
23
22
const result = await LineLogin . getBotFriendshipStatus ( )
24
23
const deserializedResult = deserializeBotFriendshipStatus ( result )
25
24
return deserializedResult
@@ -37,7 +36,9 @@ export const getProfile = async (): Promise<UserProfile> => {
37
36
return deserializedResult
38
37
}
39
38
40
- export const login = async ( args : any = { } ) : Promise < LoginResult > => {
39
+ export const login = async (
40
+ args : LoginArguments = { } ,
41
+ ) : Promise < LoginResult > => {
41
42
const result = await LineLogin . login ( args )
42
43
const deserializedResult = deserializeLoginResult ( result )
43
44
return deserializedResult
You can’t perform that action at this time.
0 commit comments